Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6111 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Dec 14, 2005, 4:20:31 PM (19 years ago)
Author:
patrick
Message:

network: moved to network_game_manager

Location:
branches/network/src/lib/network
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_game_manager.h

    r6098 r6111  
    33 *  Manages creation and destruction of entities
    44 */
    5  
     5
    66#ifndef _ENTITY_MANGER
    77#define _ENTITY_MANAGER
     
    1313#include "synchronizeable.h"
    1414
     15
     16
     17/**
     18 * protocol definition
     19 *
     20 *  CREATE_ENTITY:      CLASS_ID, UNIQUE_ID, OWNER
     21 *  REMOVE_ENTITY:      UNIQUE_ID
     22 *
     23 *  CREATE_ENTITY_LIST: NUMBER, [CLASS_ID, UNIQUE_ID, OWNER][0..NUMBER]
     24 *  REMOVE_ENTITY_LIST: NUMBER, [UNIQUE_ID][0..NUMBER]
     25 *
     26 *  REQUEST_CREATE:     CLASS_ID
     27 *  REQUEST_REMOVE:     UNIQUE_ID
     28 *
     29 *  REQUEST_SYNC:       UNIQUE_ID
     30 *  REQUEST_SYNC_LIST:  NUMBER, [UNIQUE_ID][0..NUMBER]
     31 *
     32 *
     33 */
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
    1544/*!
    1645 * a class that can create and remove entities
     
    2150    EntityManager();
    2251    ~EntityManager();
    23    
     52
    2453    virtual void writeBytes(const byte* data, int length);
    2554    virtual int readBytes(byte* data, int maxLength, int * reciever);
    2655    virtual void writeDebug() const;
    2756    virtual void readDebug() const;
    28    
     57
    2958    void createEntity(int classID);
     59    void createEntityList(int* classIDList);
    3060    void removeEntity(int uniqueID);
    31    
     61    void removeEntityList(int* uniqueIDList);
     62
     63    void sync(int uniqueID);
     64    void syncList(int* uniqueIDList);
     65
     66
    3267  private:
    3368    void requestCreateEntity(int classID);
     69    void executeCreateEntity(int classID);
     70    void requestCreateEntityList(int* classIDList);
     71    void executeCreateEntityList(int* classIDList);
     72
    3473    void requestRemoveEntity(int uniqueID);
    35    
    36     void executeCreateEntity(int classID);
    3774    void executeRemoveEntity(int uniqueID);
    38    
     75    void requestRemoveEntityList(int* uniqueIDList);
     76    void executeRemoveEntityList(int* uniqueIDList);
     77
     78
     79
    3980    bool canCreateEntity(int classID);
     81
     82
     83
     84  private:
     85    byte*          inBuffer;
     86    byte*          outBuffer;
    4087};
    4188
Note: See TracChangeset for help on using the changeset viewer.