Changeset 2944 for code/branches/netp2/src/orxonox
- Timestamp:
- May 1, 2009, 9:47:34 AM (16 years ago)
- Location:
- code/branches/netp2/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp2/src/orxonox/objects/Test.cc
r2937 r2944 82 82 83 83 84 85 86 84 void Test::registerVariables() 85 { 86 registerVariable ( u1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkU1 )); 87 87 registerVariable ( u2, variableDirection::toserver, new NetworkCallback<Test> ( this, &Test::checkU2 )); 88 88 registerVariable ( u3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkU3 ), true ); 89 89 registerVariable ( u4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkU4 ), true ); 90 90 … … 93 93 registerVariable ( s3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkS3 ), true ); 94 94 registerVariable ( s4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkS4 ), true ); 95 95 } 96 96 97 97 void Test::call(unsigned int clientID) 98 98 { 99 callStaticNetworkFunction( &Test::printV1, clientID ); 99 100 callStaticNetworkFunction( &Test::printV1, clientID ); 100 101 } -
code/branches/netp2/src/orxonox/objects/Test.h
r2937 r2944 50 50 void registerVariables(); 51 51 52 void call(unsigned int clientID);52 static void call(unsigned int clientID); 53 53 54 54
Note: See TracChangeset
for help on using the changeset viewer.