Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/network/network_game_manager.cc @ 6248

Last change on this file since 6248 was 6139, checked in by patrick, 19 years ago

trunk: merged branche network with trunk using command: svn merge -r5999:HEAD, conflicts resolved in favor of the trunk bla

File size: 2.8 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Benjamin Wuest
13   co-programmer: ...
14*/
15
16
17/* this is for debug output. It just says, that all calls to PRINT() belong to the DEBUG_MODULE_NETWORK module
18   For more information refere to https://www.orxonox.net/cgi-bin/trac.cgi/wiki/DebugOutput
19*/
20#define DEBUG_MODULE_NETWORK
21
22/* include your own header */
23#include "network_game_manager.h"
24
25
26/* using namespace std is default, this needs to be here */
27using namespace std;
28
29/*!
30 * Standard constructor
31 */
32NetworkGameManager::NetworkGameManager()
33{
34  /* set the class id for the base object */
35  this->setClassID(CL_ENTITY_MANAGER, "EntityManager");
36}
37
38/*!
39 * Standard destructor
40 */
41NetworkGameManager::~NetworkGameManager()
42{
43}
44
45
46void NetworkGameManager::writeBytes(const byte* data, int length)
47{
48}
49
50int NetworkGameManager::readBytes(byte* data, int maxLength, int * reciever)
51{
52}
53
54void NetworkGameManager::writeDebug() const
55{
56}
57
58void NetworkGameManager::readDebug() const
59{
60}
61
62
63/*!
64 * Checks whether this is connected to a server or a client
65 * and afterwards creates the needed entity if possible
66 * @param classID: The ID of the class of which an entity should be created
67 */
68void NetworkGameManager::createEntity(int classID)
69{
70}
71
72/*!
73 * Checks whether this is connected to a server or a client
74 * and afterwards removes the specified entity
75 * @param uniqueID: The ID of the entity object which should be removed
76 */
77void NetworkGameManager::removeEntity(int uniqueID)
78{
79}
80
81
82
83/*!
84 * Creates the needed entity on the server if possible
85 * @param classID: The ID of the class of which an entity should be created
86 */
87void NetworkGameManager::requestCreateEntity(int classID)
88{
89}
90
91/*!
92 * Removes the specified entity on the server
93 * @param uniqueID: The ID of the entity object which should be removed
94 */
95void NetworkGameManager::requestRemoveEntity(int uniqueID)
96{
97}
98
99/*!
100 * Creates the needed entity if possible
101 * This function is called if this is a server
102 * @param classID: The ID of the class of which an entity should be created
103 */
104void NetworkGameManager::executeCreateEntity(int classID)
105{
106}
107
108/*!
109 * Removes the specified entity
110 * This function is called if this is a server
111 * @param uniqueID: The ID of the entity object which should be removed
112 */
113void NetworkGameManager::executeRemoveEntity(int uniqueID)
114{
115}
116
117/*!
118 * Checks whether it is possible to create an entity of a given class
119 * @return: true if the entity can be created, false otherwise
120 */
121bool NetworkGameManager::canCreateEntity(int classID)
122{
123}
Note: See TracBrowser for help on using the repository browser.