Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2009, 11:34:14 PM (15 years ago)
Author:
scheusso
Message:

member function calls should work now
argument transfer still untested

File:
1 edited

Legend:

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

    r2944 r2948  
    4949//   NetworkFunctionBase* NETWORK_FUNCTION_TEST_C = new NetworkFunctionStatic( createFunctor(&Test::printV1), "bla", NETWORK_FUNCTION_POINTER );
    5050 
    51   registerStaticNetworkFunction( &Test::printV1, "printV1" );
     51  registerStaticNetworkFunction( &Test::printV1 );
     52  registerMemberNetworkFunction( Test, checkU1 );
    5253 
    5354  Test* Test::instance_ = 0;
     
    101102  }
    102103 
     104  void Test::tick(float dt)
     105  {
     106    if(!Core::isMaster())
     107      callMemberNetworkFunction( Test, checkU1, this->getObjectID(), 0 );
     108//       callMemberNetworkFunction( &Test::printV1, this->getObjectID(), 0);
     109  }
     110 
    103111  void Test::checkU1(){ COUT(1) << "U1 changed: " << u1 << std::endl; }
    104112  void Test::checkU2(){ COUT(1) << "U2 changed: " << u2 << std::endl; }
Note: See TracChangeset for help on using the changeset viewer.