Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9198 in orxonox.OLD for branches


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

dealing damage

Location:
branches/presentation/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/npcs/attractor_mine.cc

    r9179 r9198  
    5959    this->loadModel("models/ships/noxon_battle_drone.obj", .2);
    6060
     61  this->setDamage(30.0f);
    6162
    6263
  • branches/presentation/src/world_entities/projectiles/projectile.cc

    r9162 r9198  
    4141  /* character attributes */
    4242  this->setHealth(1.0f);
    43   this->setDamage(100.0f); // default damage of a projectile set to 100.0 damage points
     43  this->setDamage(1.0f); // default damage of a projectile set to 100.0 damage points
    4444
    4545  this->explosionBuffer = NULL;
  • 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.