Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/orxonox_tutorial/src/orxonox/objects/TutorialShip.cc @ 1847

Last change on this file since 1847 was 1847, checked in by rgrieder, 16 years ago

added TutorialShip. Not yet working

  • Property svn:eol-style set to native
File size: 2.5 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 *      Oliver 'greenman' Scheuss, Reto '1337' Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29// for precompiled header files. Has to be first!
30#include "OrxonoxStableHeaders.h"
31// always include this class's header file first so that it compiles on its own too.
32#include "TutorialShip.h"
33
34// Additional includes
35#include <OgreSceneNode.h>
36#include "util/Convert.h"
37#include "util/Debug.h"
38#include "util/Math.h"
39#include "core/ConfigValueIncludes.h"
40#include "core/ConsoleCommand.h"
41#include "core/CoreIncludes.h"
42#include "core/input/InputManager.h"
43#include "core/XMLPort.h"
44
45namespace orxonox
46{
47    SetConsoleCommand(TutorialShip, fire, true);
48
49    TutorialShip::TutorialShip()
50    {
51        RegisterObject(TutorialShip);
52
53        // reset variables
54    }
55
56    TutorialShip::~TutorialShip()
57    {
58    }
59
60   
61    void SpaceShip::setConfigValues()
62    {
63        //SetConfigValue(bInvertYAxis_, false).description("Set this to true for joystick-like mouse behaviour (mouse up = ship down).");
64        //SetConfigValue(reloadTime_, 0.125).description("The reload time of the weapon in seconds");
65        //SetConfigValue(testvector_, Vector3()).description("asdfblah");
66    }
67
68   
69    /**
70        @brief XML loading and saving.
71        @param xmlelement The XML-element
72        @param loading Loading (true) or saving (false)
73        @return The XML-element
74    */
75    void SpaceShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
76    {
77        SUPER(TutorialShip, XMLPort, xmlelement, mode);
78
79        //XMLPortParam(SpaceShip, "camera", setCamera, getCamera, xmlelement, mode);
80    }
81
82   
83    void SpaceShip::tick(float dt)
84    {
85        SUPER(TutorialShip, tick, dt);
86    }
87
88}
Note: See TracBrowser for help on using the repository browser.