Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2068 in orxonox.OLD for orxonox/branches/chris/src/world_entity.h


Ignore:
Timestamp:
Jul 5, 2004, 10:43:49 AM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: First snippet of the totally revamped base system… perhaps a bit confusing at the moment, but when finished theoretically you only have to subclass the worldentity and track classes to create the game content (even the menu will be a WorldEntity I suppose)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/world_entity.h

    r2066 r2068  
    2929  void removeAbility(Ability* ability);
    3030
    31   virtual void tick(float time);
    32   virtual void paint();
    33   /* virtual void actionEvent(Event* event); */
    34   virtual void collide(WorldEntity* we, Vector loc);
    35   virtual void hit(WorldEntity* weapon, Vector loc);
    36   virtual void destroy();
     31  virtual void tick (float time);
     32  virtual void draw ();
     33  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
     34  virtual void hit (WorldEntity* weapon, Vector loc);
     35  virtual void destroy ();
    3736  virtual void command (Command* cmd);
     37  virtual void get_lookat (Location* locbuf);
    3838
    3939  virtual void entityPreEnter();
     
    4242  virtual void entityPostQuit();
    4343
    44  
     44  bool bCollide;
     45  bool bDraw;
    4546
    4647 private:
    47   Vector* position;
    48   Vector* orientation;
     48        WorldEntity* owner;
     49        CollisionCluster* collisioncluster;
     50        Placement place;
     51        Location loc;
    4952  /* List of abilities */
    5053  float health;
Note: See TracChangeset for help on using the changeset viewer.