Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 28, 2006, 6:46:33 PM (19 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

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

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

    r7779 r7927  
    3232#include "camera.h"
    3333
     34#include "cr_engine.h"
     35#include "collision_handle.h"
     36
     37
    3438using namespace std;
    3539
     
    6569
    6670  this->toList(OM_NULL);
     71
     72  //this->collisionHandles = new *CollisionHandle[CREngine::CR_NUMBER]();
    6773}
    6874
     
    228234}
    229235
     236
     237/**
     238 * subscribes this world entity to a collision reaction
     239 *  @param type the type of reaction to subscribe to
     240 *  @param nrOfTargets number of target filters
     241 *  @param ... the targets as classIDs
     242 */
     243void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, ...)
     244{}
     245
     246
    230247/**
    231248 * @brief moves this entity to the List OM_List
  • 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.