Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2004, 9:31:52 PM (21 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: implemented parenting and added to framework. sill got some problems with how to pass events through the new entity list (now part of the parenting-framework). changed to a more accurate way of coordinat-ing, the openGL coord-orientation. therefore the world is realy strange because it flies into the wrong direction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/world_entity.cc

    r3245 r3302  
    3636WorldEntity::WorldEntity (bool isFree) : bFree(isFree)
    3737{
     38  this->setClassName ("WorldEntity");
    3839  this->bDraw = true;
    3940  collisioncluster = NULL;
     
    5354   \return a pointer to location
    5455*/
     56/*PN
    5557Location* WorldEntity::getLocation ()
    5658{
    5759  return &loc;
    5860}
     61*/
    5962
    6063/**
     
    6265   \return a pointer to placement
    6366*/
     67 /*PN
    6468Placement* WorldEntity::getPlacement ()
    6569{
    6670  return &place;
    6771}
    68 
     72 */
    6973/**
    7074   \brief query whether the WorldEntity in question is free
     
    8993}
    9094
     95
    9196/**
    9297   \brief this method is called every frame
     
    99104}
    100105
     106
     107/**
     108    \brief process draw function
     109*/
     110void WorldEntity::processDraw ()
     111{
     112  this->draw ();
     113  PNode* pn = this->children->enumerate ();
     114  while( pn != NULL)
     115    {
     116      ((WorldEntity*)pn)->processDraw ();
     117      pn = this->children->nextElement();
     118    }
     119}
     120
     121
     122void WorldEntity::setDrawable (bool bDraw)
     123{
     124  this->bDraw = bDraw;
     125}
     126
     127
    101128/**
    102129   \brief the entity is drawn onto the screen with this function
     
    105132*/
    106133void WorldEntity::draw()
    107 {
    108 }
     134{}
    109135
    110136/**
     
    140166void WorldEntity::init( Location* spawnloc, WorldEntity* spawnowner)
    141167{
    142   loc = *spawnloc;
    143   owner = spawnowner;
     168  //  loc = *spawnloc;
     169  //owner = spawnowner;
    144170}
    145171
     
    149175void WorldEntity::init( Placement* spawnplc, WorldEntity* spawnowner)
    150176{
    151   place = *spawnplc;
    152   owner = spawnowner;
     177  //place = *spawnplc;
     178  //owner = spawnowner;
    153179}
    154180
     
    181207   to look at the location you return with this.
    182208*/
     209/*PN
    183210void WorldEntity::getLookat (Location* locbuf)
    184211{
    185212}
     213*/
    186214
    187215/**
Note: See TracChangeset for help on using the changeset viewer.