Rev | Line | |
---|
[10437] | 1 | |
---|
| 2 | /* |
---|
| 3 | orxonox - the future of 3D-vertical-scrollers |
---|
| 4 | |
---|
| 5 | Copyright (C) 2004 orx |
---|
| 6 | |
---|
| 7 | This program is free software; you can redistribute it and/or modify |
---|
| 8 | it under the terms of the GNU General Public License as published by |
---|
| 9 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 10 | any later version. |
---|
| 11 | |
---|
| 12 | ### File Specific |
---|
| 13 | main-programmer: Patrick Boenzli |
---|
| 14 | |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON |
---|
| 18 | |
---|
| 19 | #include "weapon_slot.h" |
---|
| 20 | #include "util/loading/factory.h" |
---|
[10440] | 21 | #include "util/loading/load_param.h" |
---|
[10437] | 22 | |
---|
| 23 | |
---|
| 24 | ObjectListDefinition(WeaponSlot); |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | WeaponSlot::WeaponSlot() |
---|
| 28 | { |
---|
| 29 | this->registerObject(this, WeaponSlot::_objectList); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | WeaponSlot::WeaponSlot(const TiXmlElement* root) |
---|
| 33 | { |
---|
| 34 | this->registerObject(this, WeaponSlot::_objectList); |
---|
| 35 | |
---|
[10440] | 36 | if( root != NULL) |
---|
| 37 | this->loadParams( root); |
---|
[10437] | 38 | } |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | WeaponSlot::~WeaponSlot() |
---|
[10440] | 42 | {} |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | void WeaponSlot::loadParams(const TiXmlElement* root) |
---|
| 47 | { |
---|
| 48 | PNode::loadParams( root); |
---|
| 49 | |
---|
| 50 | // now check for the orx class to create |
---|
| 51 | LoadParam(root, "WeaponClass", this, WeaponSlot, setWeaponClass) |
---|
| 52 | .describe("Sets the class this mount points should host"); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | void WeaponSlot::setWeaponClass() |
---|
| 59 | { |
---|
| 60 | |
---|
| 61 | } |
---|
| 62 | |
---|
Note: See
TracBrowser
for help on using the repository browser.