Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2006, 3:17:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/cd: merged the new collision-detection back.
merged and collissions resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cd/src/world_entities/world_entity.h

    r7221 r7365  
    22 * @file world_entity.h
    33 * Definition of the basic WorldEntity
    4 */
     4 */
    55
    66#ifndef _WORLD_ENTITY_H
     
    4242  inline void loadMD2Texture(const std::string& fileName) { this->md2TextureFileName = fileName; }
    4343
    44   bool buildObbTree(unsigned int depth);
    45   /** @returns a reference to the obb tree of this worldentity */
    46   BVTree* getOBBTree() const { return this->obbTree; };
    47 
    4844  /** @param visibility if the Entity should be visible (been draw) */
    4945  void setVisibiliy (bool visibility) { this->bVisible = visibility; };
     
    5854
    5955  virtual void tick (float time);
    60 
    6156  virtual void draw () const;
    6257
     58  bool buildObbTree(int depth);
    6359  virtual void collidesWith (WorldEntity* entity, const Vector& location);
    64   void drawBVTree(unsigned int depth, int drawMode) const;
    65 
     60  /** @returns a reference to the obb tree of this worldentity */
     61  inline BVTree* getOBBTree() const { return this->obbTree; };
     62  void drawBVTree(int depth, int drawMode) const;
    6663
    6764  void debugWE() { this->debugEntity(); }
     
    7875
    7976  void toList(OM_LIST list);
     77
    8078
    8179  /** @returns a Reference to the objectListNumber to set. */
     
    102100  void setHealthMax(float healthMax);
    103101  void createHealthWidget();
     102
    104103  //  CharacterAttributes*    charAttr;         //!< the character attributes of a world_entity
    105104private:
Note: See TracChangeset for help on using the changeset viewer.