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 | |
---|
45 | namespace orxonox |
---|
46 | { |
---|
47 | SetConsoleCommand(TutorialShip, fire, true); |
---|
48 | |
---|
49 | TutorialShip::TutorialShip() |
---|
50 | { |
---|
51 | RegisterObject(TutorialShip); |
---|
52 | |
---|
53 | // reset variables |
---|
54 | } |
---|
55 | |
---|
56 | bool TutorialShip::create() |
---|
57 | { |
---|
58 | return true; |
---|
59 | } |
---|
60 | |
---|
61 | TutorialShip::~TutorialShip() |
---|
62 | { |
---|
63 | } |
---|
64 | |
---|
65 | void TutorialShip::setConfigValues() |
---|
66 | { |
---|
67 | //SetConfigValue(bInvertYAxis_, false).description("Set this to true for joystick-like mouse behaviour (mouse up = ship down)."); |
---|
68 | //SetConfigValue(reloadTime_, 0.125).description("The reload time of the weapon in seconds"); |
---|
69 | //SetConfigValue(testvector_, Vector3()).description("asdfblah"); |
---|
70 | } |
---|
71 | |
---|
72 | void TutorialShip::registerAllVariables() |
---|
73 | { |
---|
74 | } |
---|
75 | |
---|
76 | /** |
---|
77 | @brief XML loading and saving. |
---|
78 | @param xmlelement The XML-element |
---|
79 | @param loading Loading (true) or saving (false) |
---|
80 | @return The XML-element |
---|
81 | */ |
---|
82 | void TutorialShip::XMLPort(Element& xmlelement, XMLPort::Mode mode) |
---|
83 | { |
---|
84 | SUPER(TutorialShip, XMLPort, xmlelement, mode); |
---|
85 | |
---|
86 | //XMLPortParam(SpaceShip, "camera", setCamera, getCamera, xmlelement, mode); |
---|
87 | } |
---|
88 | |
---|
89 | |
---|
90 | void TutorialShip::tick(float dt) |
---|
91 | { |
---|
92 | SUPER(TutorialShip, tick, dt); |
---|
93 | } |
---|
94 | |
---|
95 | void TutorialShip::fire() |
---|
96 | { |
---|
97 | } |
---|
98 | } |
---|