Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3449 in orxonox.OLD for orxonox/trunk/src/world.cc


Ignore:
Timestamp:
Mar 2, 2005, 2:23:47 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: documented orxonox.cc/h world.cc/h vector.cc/h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world.cc

    r3444 r3449  
    4646}
    4747
     48/**
     49   \brief creates a new World...
     50   \param worldID with this ID
     51*/
    4852World::World (int worldID)
    4953{
     
    96100  {60.0, -10.0, 5.0}, {80.0, 10.0, 5.0}};
    97101
    98 
     102/**
     103   \brief initializes a new World
     104*/
    99105ErrorMessage World::init()
    100106{
     
    114120
    115121
    116 
     122/**
     123   \brief starts the World
     124*/
    117125ErrorMessage World::start()
    118126{
     
    123131}
    124132
     133/**
     134   \brief stops the world.
     135
     136   This happens, when the player decides to end the Level.
     137*/
    125138ErrorMessage World::stop()
    126139{
     
    129142}
    130143
     144/**
     145   \brief pauses the Game
     146*/
    131147ErrorMessage World::pause()
    132148{
     
    134150}
    135151
    136 
     152/**
     153   \brief ends the pause Phase
     154*/
    137155ErrorMessage World::resume()
    138156{
     
    140158}
    141159
    142 
     160/**
     161   \brief destroys the World
     162*/
    143163void World::destroy()
    144164{
     
    146166}
    147167
    148 
     168/**
     169   \brief shows the loading screen
     170*/
    149171void World::displayLoadScreen ()
    150172{
     
    160182}
    161183
    162 
     184/**
     185   \brief removes the loadscreen, and changes over to the game
     186
     187   \todo take out the delay
     188*/
    163189void World::releaseLoadScreen ()
    164190{
     
    169195}
    170196
    171 
     197/**
     198   \brief loads the World by initializing all resources, and set their default values.
     199*/
    172200void World::load()
    173201{
     
    334362            this->nullParent->setName ("NullParent");
    335363
    336             // create some path nodes
    337             this->pathnodes = new Vector[6];
    338             this->pathnodes[0] = Vector(0, 0, 0);
    339             this->pathnodes[1] = Vector(20, 10, 10);
    340             this->pathnodes[2] = Vector(40, 0, 10);
    341             this->pathnodes[3] = Vector(60, 10, 0);
    342             this->pathnodes[4] = Vector(80, 20, 10);
    343             this->pathnodes[5] = Vector(30, 50, 0);
    344            
    345 
    346364
    347365
     
    795813
    796814
    797 /*
     815/**
    798816  \brief main loop of the world: executing all world relevant function
    799817
     
    950968   \brief add and spawn a new entity to this world
    951969   \param entity to be added
    952    \param location where to add
     970   \param absCoor At what coordinates to add this entity.
     971   \param absDir In which direction should it look.
    953972*/
    954973void World::spawn(WorldEntity* entity, Vector* absCoor, Quaternion* absDir)
     
    967986
    968987
    969 /*
     988/**
    970989  \brief commands that the world must catch
    971990  \returns false if not used by the world
     
    978997
    979998
    980 
     999/**
     1000   \brief swaps two values
     1001   \todo make this a global function, and take it out of world
     1002*/
    9811003void World::swap (unsigned char &a, unsigned char &b)
    9821004{
Note: See TracChangeset for help on using the changeset viewer.