Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3620 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.cc


Ignore:
Timestamp:
Mar 21, 2005, 5:37:58 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added worldinterface, to enable all worldentities to access the entities list. so they can add entities themselfes. this is a nice hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapon.cc

    r3583 r3620  
    2323#include "objModel.h"
    2424#include "projectile.h"
     25#include "list.h"
     26#include "world.h"
    2527
    2628using namespace std;
     
    3335*/
    3436Weapon::Weapon () : WorldEntity()
    35 {}
     37{
     38  WorldInterface* wi = WorldInterface::getInstance();
     39  this->worldEntities = wi->getEntityList();
     40}
    3641
    3742
     
    174179*/
    175180void Weapon::fire()
    176 {}
     181{
     182 
     183}
    177184
    178185
Note: See TracChangeset for help on using the changeset viewer.