Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 25, 2005, 11:38:46 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Turret Power Up defined

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/power_ups/turret_power_up.cc

    r5433 r5434  
    1 
    2 
    31/*
    42   orxonox - the future of 3D-vertical-scrollers
     
    1210
    1311   ### File Specific:
    14    main-programmer: ...
     12   main-programmer: Benjamin Grauer
    1513   co-programmer: ...
    1614*/
    1715
    1816
    19 #include "power_up.h"
    20 
     17#include "turret_power_up.h"
     18#include "factory.h"
    2119
    2220using namespace std;
    2321
     22CREATE_FACTORY(TurretPowerUp);
    2423
    2524
    26 PowerUp::PowerUp ()
     25TurretPowerUp::TurretPowerUp ()
    2726{
    28   this->setClassID(CL_POWER_UP, "PowerUp");
     27  this->init();
     28}
     29
     30TurretPowerUp::TurretPowerUp(const TiXmlElement* root)
     31{
     32  this->init();
     33
     34  this->loadParams(root);
    2935}
    3036
    3137
    32 
    33 PowerUp::~PowerUp () {}
     38TurretPowerUp::~TurretPowerUp () {}
    3439
    3540
     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 TracChangeset for help on using the changeset viewer.