Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: resource manager working, player uses it.

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