Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 11:28:38 PM (17 years ago)
Author:
scheusso
Message:

gamestateclient completet

Location:
code/branches/FICN/src/network
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/ConnectionManager.cc

    r496 r505  
    140140        break;
    141141      case ENET_EVENT_TYPE_RECEIVE:
    142         std::cout << "received data" << std::endl;
     142        //std::cout << "received data" << std::endl;
    143143        processData(&event);
    144144        break;
  • code/branches/FICN/src/network/GameStateClient.cc

    r436 r505  
    5959        removeObject(it);
    6060      }
    61       if(it==0){  // add the new object
    62         // =================== factory command to add object
    63         // can we be sure the object really was added?
     61      if(it==0){
     62        orxonox::BaseObject *no = ID(sync.classID)->fabricate();
     63        ((Synchronisable *)no)->objectID=sync.objectID;
     64        ((Synchronisable *)no)->classID=sync.classID;
    6465        it=orxonox::ObjectList<Synchronisable>::end();
    65         it->objectID=sync.objectID;
    66         it->classID=sync.classID;
    6766      }
    6867    } else {
     
    7271            << sync.objectID << "; classID: " << sync.classID << std::endl;
    7372    }
    74    
     73    ++it;
    7574  }
    7675 
  • code/branches/FICN/src/network/GameStateClient.h

    r496 r505  
    1616#include "Synchronisable.h"
    1717#include "orxonox/core/CoreIncludes.h"
     18#include "orxonox/objects/BaseObject.h"
    1819#include "GameStateManager.h"
    1920
  • code/branches/FICN/src/network/TODO

    r439 r505  
    88- integrate ClientInformation into gamestatemanager [done]
    99
    10 - write dummyserver and dummyclient (chat system)
     10- write dummyserver and dummyclient (chat system) [done]
     11
     12- include GameStateClient into Client and write processGamestate (also packetdecoder (virtual))
     13- create object with worldentity .....
     14
     15- try and error ;)
Note: See TracChangeset for help on using the changeset viewer.