Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1855 in orxonox.OLD for orxonox/trunk/core/world.cc


Ignore:
Timestamp:
May 5, 2004, 9:34:21 AM (20 years ago)
Author:
patrick
Message:

/orxonox/trunk/core/ modifications on world and docs

File:
1 edited

Legend:

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

    r1853 r1855  
    1010   the Free Software Foundation; either version 2, or (at your option)
    1111   any later version.
     12
     13   ### File Specific:
     14   main-programmer: Patrick Boenzli
     15   co-programmer:
    1216*/
    1317
     
    1923
    2024World::World () {
    21  
     25  lastPlayer = null;
     26  lastPlayer->nextPlayer = null;
    2227}
    23 
    2428
    2529
     
    2731
    2832
     33/**
     34   \brief Add Player
     35   \param player A reference to the new player object
     36   
     37   Add a new Player to the game. Player has to be initialised previously
     38*/
     39bool World::addPlayer(Player* player)
     40{
     41  playerList* listMember = new playerList;
     42  listMember->nextPlayer = lastPlayer;
     43  listMember->player = player;
     44  listMember->playerNr = lastPlayer->playerNr + 1;
     45  lastPlayer = listMember;
     46}
     47
     48
     49
     50/**
     51   \brief Routine for testing purposes.
     52   
     53   testing, testing, testing...
     54*/
     55boot World::testRouting()
     56{
     57
     58}
     59
     60bool World::removePlayer(Player* player) {}
     61
     62bool World::addNPC(NPC* npc) {}
     63bool World::removeNPC(NPC* npc) {}
Note: See TracChangeset for help on using the changeset viewer.