Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2007 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Fabian 'x3n' Landau |
---|
13 | co-programmer: |
---|
14 | */ |
---|
15 | |
---|
16 | #include "util/loading/load_param.h" |
---|
17 | #include "util/loading/factory.h" |
---|
18 | #include "mover_trigger_mapstart.h" |
---|
19 | #include "debug.h" |
---|
20 | |
---|
21 | ObjectListDefinition(MapstartTrigger); |
---|
22 | CREATE_FACTORY(MapstartTrigger); |
---|
23 | |
---|
24 | |
---|
25 | MapstartTrigger::MapstartTrigger(const TiXmlElement* root) |
---|
26 | { |
---|
27 | PRINTF(0)("13_1 MapstartTrigger %p created\n", this); |
---|
28 | this->registerObject(this, MapstartTrigger::_objectList); |
---|
29 | this->toList(OM_ENVIRON); |
---|
30 | |
---|
31 | this->bInit = true; |
---|
32 | |
---|
33 | if (root != NULL) |
---|
34 | this->loadParams(root); |
---|
35 | |
---|
36 | this->init_post_params(); |
---|
37 | } |
---|
38 | |
---|
39 | void MapstartTrigger::loadParams(const TiXmlElement* root) |
---|
40 | { |
---|
41 | MoverTrigger::loadParams(root); |
---|
42 | } |
---|
43 | |
---|
44 | bool MapstartTrigger::checkIsTriggered() |
---|
45 | { |
---|
46 | if (this->bInit) |
---|
47 | { |
---|
48 | this->bInit = false; |
---|
49 | return true; |
---|
50 | } |
---|
51 | |
---|
52 | return false; |
---|
53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.