Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/world.cc @ 1855

Last change on this file since 1855 was 1855, checked in by patrick, 20 years ago

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

File size: 1.1 KB
Line 
1
2
3/*
4   orxonox - the future of 3D-vertical-scrollers
5
6   Copyright (C) 2004 orx
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 2, or (at your option)
11   any later version.
12
13   ### File Specific:
14   main-programmer: Patrick Boenzli
15   co-programmer:
16*/
17
18
19#include "world.h"
20
21
22
23
24World::World () {
25  lastPlayer = null;
26  lastPlayer->nextPlayer = null;
27}
28
29
30World::~World () {}
31
32
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 TracBrowser for help on using the repository browser.