Show
Ignore:
Timestamp:
03/02/10 22:45:36 (6 months ago)
Author:
gaul@…
Message:
  • move code from .h into .cc files
  • prepare ODEObj for enable()/disable() in order to retrieve corresponding ODEObjs in collision detection
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cpp-ode/src/libmmpong/netgame_ode_pong.h

    r541 r542  
    4848 
    4949                //server 
    50                 virtual void srv_init() { 
    51                         //create bars on top and bottom 
    52                         //uint16_t entid; 
    53                         boost::shared_ptr<ODEBox>  
    54                                 bartop=srv_ent_create<ODEBox>(),  
    55                                 barbot=srv_ent_create<ODEBox>(); 
    56                         bartop->geom.setLengths(2.0,0.05,0.05); 
    57                         bartop->setPosition(0.0, 1.05, 0.0); 
    58                         bartop->set_immovable(); 
    59  
    60                         barbot->geom.setLengths(2.0,0.05,0.05); 
    61                         barbot->setPosition(0.0, -1.05, 0.0); 
    62                         barbot->set_immovable(); 
    63                          
    64                         boost::shared_ptr<ODESphere>  
    65                                 ball=srv_ent_create<ODESphere>(); 
    66                         ball->geom.setRadius(0.025); 
    67                         ball->setLinearVel(0.0, 1.0, 0.0); 
    68                 }; 
     50                virtual void srv_init(); 
    6951                virtual void srv_con_start(NetCon::pointer con); 
    7052                virtual void srv_con_end(NetCon::pointer con);