Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/world_entities/world_entity.h @ 3605

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

orxonox/trunk: merged trunk back to levelloader
merged with command:
svn merge -r 3499:HEAD trunk branches/levelloader

Conflicts in
C track_manager.h
C world_entities/player.cc
C world_entities/player.h
C world_entities/environment.h
C lib/coord/p_node.cc
C defs/debug.h
C track_manager.cc
C story_entities/campaign.h

solved in merge-favouring. It was quite easy because Chris only worked on the headers, and he didi it quite clean. Thats the spirit :)

Conflits in world.cc are a MESS: fix 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 "stdincl.h"
10#include "p_node.h"
11#include "objModel.h"
12
13//class CollisionCluster;
14class CharacterAttributes;
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  OBJModel* 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.