Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4483 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 2, 2005, 5:23:06 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: proto documented

Location:
orxonox/trunk/src/proto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/proto/proto_world_entity.cc

    r3762 r4483  
    2828ProtoWorldEntity::ProtoWorldEntity ()
    2929{
    30   this->model = (Model*)ResourceManager::getInstance()->load("cube", PRIM, RP_LEVEL);
     30  this->init();
    3131}
     32
     33/**
     34   \brief constructs and loads a ProtoWorldEntity from a XML-element
     35   \param root the XML-element to load from
     36*/
     37ProtoWorldEntity::ProtoWorldEntity(const TiXmlElement* root)
     38{
     39  this->init();
     40  this->loadParams(root);
     41}
     42
    3243
    3344/**
     
    3849
    3950}
     51
     52/**
     53   \brief initializes the ProtoWorldEntity
     54*/
     55void ProtoWorldEntity::init(void)
     56{
     57  ...
     58}
     59
     60/**
     61   \brief loads a ProtoWorldEntity from a XML-element
     62   \param root the XML-element to load from
     63*/
     64void ProtoWorldEntity::loadParams(const TiXmlElement* root)
     65{
     66  static_cast<WorldEntity*>(this)->loadParam(root);
     67
     68  ...
     69}
     70
    4071
    4172/**
     
    4980
    5081/**
    51    \biref draws this worldEntity
     82   \brief draws this worldEntity
    5283*/
    5384void ProtoWorldEntity::draw ()
  • orxonox/trunk/src/proto/proto_world_entity.h

    r3762 r4483  
    11/*!
    2     \file proto_world_entity
     2    \file proto_world_entity.h
    33
     4    description
    45*/
    56
     
    1516 public:
    1617  ProtoWorldEntity();
     18  ProtoWorldEntity(const TiXmlElement* root);
    1719  virtual ~ProtoWorldEntity();
     20 
     21  void loadParams(const TiXmlElement* root);
    1822  void init();
    1923 
Note: See TracChangeset for help on using the changeset viewer.