| 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 */ |
|---|
| 27 | using namespace std; |
|---|
| 28 | |
|---|
| 29 | /*! |
|---|
| 30 | * Standard constructor |
|---|
| 31 | */ |
|---|
| 32 | NetworkGameManager::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 | */ |
|---|
| 41 | NetworkGameManager::~NetworkGameManager() |
|---|
| 42 | { |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | void NetworkGameManager::writeBytes(const byte* data, int length) |
|---|
| 47 | { |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | int NetworkGameManager::readBytes(byte* data, int maxLength, int * reciever) |
|---|
| 51 | { |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | void NetworkGameManager::writeDebug() const |
|---|
| 55 | { |
|---|
| 56 | } |
|---|
| 57 | |
|---|
| 58 | void 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 | */ |
|---|
| 68 | void 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 | */ |
|---|
| 77 | void 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 | */ |
|---|
| 87 | void 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 | */ |
|---|
| 95 | void 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 | */ |
|---|
| 104 | void 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 | */ |
|---|
| 113 | void 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 | */ |
|---|
| 121 | bool NetworkGameManager::canCreateEntity(int classID) |
|---|
| 122 | { |
|---|
| 123 | } |
|---|