Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: updated the terrain class to more functionality
view goes farther 2000 instead of 250
model gets deleted by world_entity instead of childs

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