Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 24, 2005, 12:12:41 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: WorldEntity now has the ability to return its FaceCounts

File:
1 edited

Legend:

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

    r4504 r4680  
    1 /*! 
     1/*!
    22    \file world_entity.h
    33    \brief Definition of the basic WorldEntity
     
    1212#include "factory.h"
    1313#include "load_param.h"
     14#include "model.h"
    1415
    1516//class CollisionCluster;
    1617class CharacterAttributes;
    17 class Model;
    1818class SoundEngine;
    1919class SoundBuffer;
     
    2222//! Basic class from which all interactive stuff in the world is derived from
    2323class WorldEntity : public PNode
    24 {       
     24{
    2525  friend class World;
    2626
     
    3333
    3434  //void setCollision (CollisionCluster* newhull);
    35  
     35
    3636  //void addAbility(Ability* ability);
    3737  //void removeAbility(Ability* ability);
    38   void setDrawable (bool bDraw); 
     38  void setDrawable (bool bDraw);
    3939  void setCharacterAttributes(CharacterAttributes* charAttr);
    4040  CharacterAttributes* getCharacterAttributes();
     
    4747  virtual void command (Command* cmd);
    4848
     49  /** \returns the Count of Faces on this WorldEntity */
     50  virtual unsigned int getFaceCount (void) const { if (this->model) return this->model->getFaceCount(); else return 0; };
     51
    4952  void processDraw ();
    5053  virtual void draw ();
    5154  virtual void tick (float time);
    52  
     55
    5356 protected:
    5457  Model* model;                  //!< The model that should be loaded for this entity.
    5558  CharacterAttributes* charAttr;      //!< the character attributes of a world_entity
    56  
     59
    5760 private:
    5861  bool bCollide;                      //!< If it should be considered for the collisiontest.
Note: See TracChangeset for help on using the changeset viewer.