C# Class SharpNeat.DomainsExtra.WalkerBox2d.WalkerWorld

Box2D world for the Walker problem domain.
Inheritance: SharpNeat.DomainsExtra.Box2D.SimulationWorld
Exibir arquivo Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
CreateWalkerInterface ( ) : WalkerInterface

Create an interface onto the walker player.

InitSimulationWorld ( ) : void

Inititialise world.

WalkerWorld ( ) : Box2DX.Collision

Default constructor.

WalkerWorld ( XorShiftRandom rng ) : Box2DX.Collision

Default constructor.

WalkerWorld ( XorShiftRandom rng, float trackLength ) : Box2DX.Collision

Constructor accepting a trackLength parameter (length of the track that the walker is walking along).

Protected Methods

Method Description
PopulateWorld ( ) : void

Add objects to the Box2d world.

Private Methods

Method Description
CreatePole ( Vec2 basePose, float length, float angle, float radius, float density, ushort layers ) : Body

Method Details

CreateWalkerInterface() public method

Create an interface onto the walker player.
public CreateWalkerInterface ( ) : WalkerInterface
return WalkerInterface

InitSimulationWorld() public method

Inititialise world.
public InitSimulationWorld ( ) : void
return void

PopulateWorld() protected method

Add objects to the Box2d world.
protected PopulateWorld ( ) : void
return void

WalkerWorld() public method

Default constructor.
public WalkerWorld ( ) : Box2DX.Collision
return Box2DX.Collision

WalkerWorld() public method

Default constructor.
public WalkerWorld ( XorShiftRandom rng ) : Box2DX.Collision
rng Redzen.Numerics.XorShiftRandom
return Box2DX.Collision

WalkerWorld() public method

Constructor accepting a trackLength parameter (length of the track that the walker is walking along).
public WalkerWorld ( XorShiftRandom rng, float trackLength ) : Box2DX.Collision
rng Redzen.Numerics.XorShiftRandom Random number generator.
trackLength float
return Box2DX.Collision