CUGL 2.5
Cornell University Game Library
Loading...
Searching...
No Matches
Classes | Typedefs
cugl::physics2::net Namespace Reference

Classes

class  GameStateEvent
 
class  LWDeserializer
 
class  LWSerializer
 
class  NetEvent
 
class  NetEventController
 
class  NetPhysicsController
 
class  NetWorld
 
class  ObstacleFactory
 
class  PhysObstEvent
 
class  PhysSyncEvent
 

Typedefs

typedef std::function< void(const std::shared_ptr< physics2::Obstacle > &obs, const std::shared_ptr< scene2::SceneNode > &node)> ObstacleLink
 
typedef std::pair< std::shared_ptr< physics2::Obstacle >, std::shared_ptr< scene2::SceneNode > > ObstacleScene
 

Detailed Description

The classes to implement networked physics.

This namespace represents an extension of our 2-d physics engine to support networking. This package provides automatic synchronization of physics objects across devices.

Typedef Documentation

◆ ObstacleLink

typedef std::function<void(const std::shared_ptr<physics2::Obstacle>& obs, const std::shared_ptr<scene2::SceneNode>& node)> cugl::physics2::net::ObstacleLink

Function for linking an obstacle to a specific scene node.

This function should be provided by the user to support animations in reaction to changes in the physics simulation.

Parameters
obsThe obstacle in the simulation
nodeThe scene graph node representing the obstacle

◆ ObstacleScene

typedef std::pair<std::shared_ptr<physics2::Obstacle>, std::shared_ptr<scene2::SceneNode> > cugl::physics2::net::ObstacleScene

Group the obstacle/scene pair into a type for easier reading