Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/map/src/orxonox/overlays/map/Map.cc @ 2837

Last change on this file since 2837 was 2837, checked in by Naaduun, 15 years ago

added Map class

File size: 1.9 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Si Sun
24 *
25 */
26#include "OrxonoxStableHeaders.h"
27#include "Map.h"
28 
29#include <string>
30#include <OgreOverlay.h>
31#include <OgreOverlayElement.h>
32#include <OgreOverlayManager.h>
33#include <OgreOverlayContainer.h>
34#include "core/CoreIncludes.h"
35#include "core/ConfigValueIncludes.h"
36#include "core/ConsoleCommand.h"
37#include "objects/Scene.h"
38 
39 namespace orxonox
40 {
41    CreateFactory(Map);
42     SetConsoleCommand(Map, openMap, true);
43   
44    Map::Map(BaseObject* creator) : OrxonoxOverlay(creator)
45    {
46        RegisterObject(Map);
47       
48        //COUT(0) << "Map loaded\n" << this->getScene();
49        Ogre::SceneManager* sm = this->getScene()->getSceneManager();
50        Ogre::SceneNode* sn = new Ogre::SceneNode(sm);
51        COUT(0) << "Map loaded\n" << sm << " / " << sn << std::endl;
52    }
53   
54    void Map::XMLPort(Element& xmlElement, XMLPort::Mode mode)
55    {
56        SUPER(Map, XMLPort, xmlElement, mode);
57    }
58   
59    void Map::changedVisibility()
60    {
61        SUPER(Map, changedVisibility);
62       
63    }
64   
65    void Map::tick(float dt)
66    {
67    }
68   
69 }
Note: See TracBrowser for help on using the repository browser.