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_key.h" |
---|
19 | |
---|
20 | ObjectListDefinition(KeyTrigger); |
---|
21 | CREATE_FACTORY(KeyTrigger); |
---|
22 | |
---|
23 | |
---|
24 | KeyTrigger::KeyTrigger(const TiXmlElement* root) |
---|
25 | { |
---|
26 | this->registerObject(this, KeyTrigger::_objectList); |
---|
27 | this->toList(OM_ENVIRON); |
---|
28 | this->keyName = ""; |
---|
29 | |
---|
30 | if (root != NULL) |
---|
31 | this->loadParams(root); |
---|
32 | |
---|
33 | this->init_post_params(); |
---|
34 | } |
---|
35 | |
---|
36 | void KeyTrigger::loadParams(const TiXmlElement* root) |
---|
37 | { |
---|
38 | MoverTrigger::loadParams(root); |
---|
39 | |
---|
40 | LoadParam(root, "key", this, KeyTrigger, setKey) |
---|
41 | .describe("The key that releases the trigger") |
---|
42 | .defaultValues(""); |
---|
43 | } |
---|
44 | |
---|
45 | bool KeyTrigger::checkIsTriggered() |
---|
46 | { |
---|
47 | /* TODO */ |
---|
48 | return false; |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.