Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/world_entities/world_entity.h @ 3655

Last change on this file since 3655 was 3655, checked in by bensch, 19 years ago

orxonox/trunk: moved protoclass to folder proto
added protosingleton
added resourceManager
modiefied some stuff to work better

File size: 1.6 KB
Line 
1/*!
2    \file world_entity.h
3    \brief Definition of the basic WorldEntity
4*/
5
6#ifndef _WORLD_ENTITY_H
7#define _WORLD_ENTITY_H
8
9#include "p_node.h"
10#include "comincl.h"
11
12//class CollisionCluster;
13class CharacterAttributes;
14class Model;
15
16
17//! Basic class from which all interactive stuff in the world is derived from
18class WorldEntity : public PNode
19{       
20  friend class World;
21
22 public:
23  WorldEntity (bool isFree = false);
24  virtual ~WorldEntity ();
25
26
27
28 
29  //void setCollision (CollisionCluster* newhull);
30 
31  //void addAbility(Ability* ability);
32  //void removeAbility(Ability* ability);
33  void setDrawable (bool bDraw); 
34  bool isFree ();
35  void setCharacterAttributes(CharacterAttributes* charAttr);
36  CharacterAttributes* getCharacterAttributes();
37
38  virtual void postSpawn ();
39  virtual void leftWorld ();
40
41  virtual void hit (WorldEntity* weapon, Vector* loc);
42  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
43  virtual void command (Command* cmd);
44
45  void processDraw ();
46  virtual void draw ();
47  virtual void tick (float time);
48 
49 protected:
50  Model* model;                  //!< The model that should be loaded for this entity.
51  CharacterAttributes* charAttr;      //!< the character attributes of a world_entity
52 
53 private:
54  const bool bFree;                   //!< If the entity is free.
55  bool bCollide;                      //!< If it should be considered for the collisiontest.
56  bool bDraw;                         //!< If it should be visible.
57
58
59
60  //CollisionCluster* collisioncluster; //!< The collision-Cluster of this entity.
61};
62
63#endif /* _WORLD_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.