Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7927 in orxonox.OLD for trunk/src/world_entities/world_entity.h


Ignore:
Timestamp:
May 28, 2006, 6:46:33 PM (18 years ago)
Author:
patrick
Message:

trunk: added more cr framework, i will branche soon with this stuff so the trunk dosn't get involved to much in the development phase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.h

    r7779 r7927  
    1111#include "model.h"
    1212
     13#include "cr_engine.h"
    1314#include "object_manager.h"
    1415#include "glincl.h"
    1516#include <vector>
     17#include <stdarg.h>
     18
     19
    1620
    1721// FORWARD DECLARATION
     
    2125class BVTree;
    2226class Model;
     27class CollisionHandle;
     28
    2329
    2430//class CharacterAttributes;
     
    5460  virtual void draw () const;
    5561
     62  /* --- Collision Detection Block  --- */
    5663  bool buildObbTree(int depth);
    5764  virtual void collidesWith (WorldEntity* entity, const Vector& location);
     
    6067  void drawBVTree(int depth, int drawMode) const;
    6168
    62   void debugWE() { this->debugEntity(); }
    63   ;  ///FIXME
    64   void debugEntity() const;
     69  /* --- Collision Reaction Block --- */
     70  void subscribeReaction(CREngine::CRType type, int nrOfTargets, ...);
    6571
    6672
     
    7278  //  CharacterAttributes* getCharacterAttributes();
    7379
     80  /* --- Object Manager Block --- */
    7481  void toList(OM_LIST list);
    75 
    76 
    7782  /** @returns a Reference to the objectListNumber to set. */
    7883  OM_LIST& getOMListNumber() { return this->objectListNumber; }
     
    8085  ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; }
    8186
     87  /* --- Network Block --- */
    8288  int       writeState(const byte* data, int length, int sender);
    8389  int       readState(byte* data, int maxLength );
    8490
     91  /* --- Character Attribute Block --- */
    8592  /** @returns the Energy of the entity */
    8693  float getHealth() const { return this->health; };
     
    9299  OrxGui::GLGuiWidget* getHealthWidget();
    93100  bool hasHealthWidget() const { return this->healthWidget; };
     101
     102  /* --- Misc Stuff Block --- */
     103  void debugWE() { this->debugEntity(); }
     104  ;  ///FIXME
     105  void debugEntity() const;
     106
    94107
    95108protected:
     
    121134
    122135  float                   scaling;
     136  CollisionHandle**       collisionHandles;
    123137
    124138
Note: See TracChangeset for help on using the changeset viewer.