Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 401


Ignore:
Timestamp:
Dec 5, 2007, 4:10:19 PM (17 years ago)
Author:
scheusso
Message:

corrected some errors

Location:
code/branches/FICN
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/CMakeLists.txt

    r389 r401  
    6363FIND_PACKAGE(OpenAL)
    6464FIND_PACKAGE(ALUT)
    65 # FIND_PACKAGE(OggVorbis)
     65#FIND_PACKAGE(OggVorbis)
    6666
    6767#Sets the search paths for the linking
  • code/branches/FICN/src/network/Client.cc

    r400 r401  
    155155 
    156156  void Client::processClassid(classid *clid){
    157    
    158    
    159    
     157    orxonox::Identifier *id;
     158    orxonox::ID(std::string(clid->message))->setNetworkID(clid->classid);
    160159  }
    161160 
  • code/branches/FICN/src/network/ConnectionManager.cc

    r400 r401  
    231231        addPacket(packet_gen.clid( i, classname ),clientID);
    232232      }
     233      ++i;
    233234    }
    234235    sendPackets();
  • code/branches/FICN/src/network/PacketDecoder.cc

    r400 r401  
    138138        cid->message = (const char *)malloc(cid->length);
    139139        enet_packet_destroy( packet );
    140         processClassid(&cid);
     140        processClassid(cid);
    141141}
    142142
  • code/branches/FICN/src/network/PacketManager.h

    r400 r401  
    6666        //call this function to decode, it calls the right decoding function below
    6767        bool elaborate( ENetPacket* packet, int clientId );
     68        struct classid{
     69          int id;
     70          int length;
     71          int classid;
     72          const char *message;
     73        };
    6874private:
    6975        struct ack {
     
    8995        };
    9096       
    91         struct classid{
    92           int id;
    93           int length;
    94           int classid;
    95           const char *message;
    96         };
     97       
    9798       
    9899        void acknowledgement( ENetPacket* packet );
  • code/branches/FICN/src/network/Synchronisable.cc

    r367 r401  
    2020Synchronisable::Synchronisable()
    2121{
     22  static int idCounter=0;
    2223  datasize=0;
     24  objectID=idCounter++;
    2325  //registerAllVariables();
    2426}
Note: See TracChangeset for help on using the changeset viewer.