Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/weapons/weapon_slot.cc @ 10679

Last change on this file since 10679 was 10534, checked in by patrick, 18 years ago

mounting weapon slots

File size: 1.2 KB
Line 
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"
21#include "util/loading/load_param.h"
22
23
24ObjectListDefinition(WeaponSlot);
25CREATE_FACTORY(WeaponSlot);
26
27
28
29WeaponSlot::WeaponSlot()
30{
31  this->registerObject(this, WeaponSlot::_objectList);
32}
33
34WeaponSlot::WeaponSlot(const TiXmlElement* root)
35{
36   this->registerObject(this, WeaponSlot::_objectList);
37
38   if( root != NULL)
39     this->loadParams( root);
40}
41
42
43WeaponSlot::~WeaponSlot()
44{}
45
46
47
48void WeaponSlot::loadParams(const TiXmlElement* root)
49{
50  PNode::loadParams( root);
51
52    // now check for the orx class to create
53  LoadParam(root, "WeaponClass", this, WeaponSlot, setWeaponClass)
54  .describe("Sets the class this mount points should host");
55
56  LoadParam(root, "slot", this, WeaponSlot, setWeaponConfig)
57      .describe("sets the weapon slot");
58}
59
60
61
62
63void WeaponSlot::setWeaponClass()
64{
65
66}
67
Note: See TracBrowser for help on using the repository browser.