Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2009, 9:47:34 AM (16 years ago)
Author:
scheusso
Message:

this is another commit for testing purpose
still trying to get network function calls to work (first success)

Location:
code/branches/netp2/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp2/src/orxonox/objects/Test.cc

    r2937 r2944  
    8282
    8383
    84         void Test::registerVariables()
    85         {
    86                 registerVariable ( u1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkU1 ));
     84  void Test::registerVariables()
     85  {
     86    registerVariable ( u1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkU1 ));
    8787    registerVariable ( u2, variableDirection::toserver, new NetworkCallback<Test> ( this, &Test::checkU2 ));
    88                 registerVariable ( u3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkU3 ), true );
     88    registerVariable ( u3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkU3 ), true );
    8989    registerVariable ( u4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkU4 ), true );
    9090   
     
    9393    registerVariable ( s3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkS3 ), true );
    9494    registerVariable ( s4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkS4 ), true );
    95         }
     95  }
    9696 
    9797  void Test::call(unsigned int clientID)
    9898  {
     99    callStaticNetworkFunction( &Test::printV1, clientID );
    99100    callStaticNetworkFunction( &Test::printV1, clientID );
    100101  }
  • code/branches/netp2/src/orxonox/objects/Test.h

    r2937 r2944  
    5050      void registerVariables();
    5151     
    52       void call(unsigned int clientID);
     52      static void call(unsigned int clientID);
    5353
    5454
Note: See TracChangeset for help on using the changeset viewer.