Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2006, 10:19:58 AM (18 years ago)
Author:
bensch
Message:

dealing damage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc

    r9167 r9198  
    5151                       );
    5252
    53 /**
    54  *  destructs the spacecraft_2d, deletes alocated memory
    55  */
    56 Spacecraft2D::~Spacecraft2D ()
    57 {
    58   this->setPlayer(NULL);
    59   delete this->toTravelHeight;
    60 }
    6153
    6254/**
     
    8981  if (root != NULL)
    9082    this->loadParams(root);
     83
     84
    9185
    9286  //weapons:
     
    109103
    110104/**
     105 * @brief destructs the spacecraft_2d, deletes alocated memory
     106 */
     107Spacecraft2D::~Spacecraft2D ()
     108{
     109  this->setPlayer(NULL);
     110  delete this->toTravelHeight;
     111}
     112
     113
     114/**
    111115 * @brief initializes a Spacecraft2D
    112116 */
     
    127131
    128132
    129   this->setHealthMax(100);
    130   this->setHealth(100);
     133  this->setHealthMax(1000);
     134  this->setHealth(1000);
     135  this->setDamage(100.0f);
     136
    131137
    132138
Note: See TracChangeset for help on using the changeset viewer.