Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/power_ups/turret_power_up.cc @ 5434

Last change on this file since 5434 was 5434, checked in by bensch, 19 years ago

orxonox/trunk: Turret Power Up defined

File size: 951 bytes
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 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: Benjamin Grauer
13   co-programmer: ...
14*/
15
16
17#include "turret_power_up.h"
18#include "factory.h"
19
20using namespace std;
21
22CREATE_FACTORY(TurretPowerUp);
23
24
25TurretPowerUp::TurretPowerUp ()
26{
27  this->init();
28}
29
30TurretPowerUp::TurretPowerUp(const TiXmlElement* root)
31{
32  this->init();
33
34  this->loadParams(root);
35}
36
37
38TurretPowerUp::~TurretPowerUp () {}
39
40
41void TurretPowerUp::init()
42{
43  this->setClassID(CL_TURRET_POWER_UP, "TurretPowerUp");
44  this->loadModel("models/guns/turret1.obj");
45}
46
47
48void TurretPowerUp::loadParams(const TiXmlElement* root)
49{
50  static_cast<PowerUp*>(this)->loadParams(root);
51
52}
Note: See TracBrowser for help on using the repository browser.