Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/world_entity.h @ 2779

Last change on this file since 2779 was 2551, checked in by patrick, 20 years ago

orxonox/trunk: minor changes - enhanced sc controll, fixed uncontrolled rotation effect, added some debug outputs for testing purposes, reformatted some src files from win style but not all

File size: 1.2 KB
RevLine 
[2077]1/*!
2    \file world_entity.h
[2190]3    \brief Definition of the basic WorldEntity
4*/
[2036]5
6#ifndef WORLD_ENTITY_H
7#define WORLD_ENTITY_H
8
[2190]9#include "stdincl.h"
[2036]10
[2190]11class CollisionCluster;
[2036]12
[2190]13//! Basic class from which all interactive stuff in the world is derived from
14class WorldEntity
15{       
[2551]16  friend class World;
17 
[2036]18 public:
[2190]19  WorldEntity (bool isFree = false);
[2036]20  ~WorldEntity ();
[2551]21 
22  Location* get_location ();
23  Placement* get_placement ();
24  void set_collision (CollisionCluster* newhull);
25 
26  bool isFree ();
27 
[2190]28  //void addAbility(Ability* ability);
29  //void removeAbility(Ability* ability);
[2551]30 
31  virtual void post_spawn ();
[2190]32  virtual void tick (float time);
33  virtual void hit (WorldEntity* weapon, Vector loc);
34  virtual void destroy ();
35  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
[2551]36  virtual void command (Command* cmd);
[2190]37 
38  virtual void draw ();
39  virtual void get_lookat (Location* locbuf);
[2551]40 
41  virtual void left_world ();
42 
[2036]43 private:
[2190]44  const bool bFree;     
45  bool bCollide;
46  bool bDraw;
[2036]47 
[2551]48  WorldEntity* owner;
49  CollisionCluster* collisioncluster;
50  Placement place;
51  Location loc;
52 
53  void init( Location* spawnloc, WorldEntity* spawnowner);
54  void init( Placement* spawnplc, WorldEntity* spawnowner);
[2036]55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.