Package pybox2d :: Module Box2D :: Class b2Controller
[hide private]
[frames] | no frames]

type b2Controller

source code

Known Subclasses:

Base class for controllers. Controllers are a convience for encapsulating common per-step functionality.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
__swig_destroy__(...)
delete_b2Controller(b2Controller self)
 
__repr__(self) source code
 
__getstate__(self) source code
 
__setstate__(self, dict)
Takes each variable=value pair in the dictionary and sets the attributes based on them
source code
 
typeName(self)
Return the name of the controller from:...
source code
 
getAsType(self)
Return a typecasted version of the controller
source code
 
GetBodyList(self) source code
 
__iter__(self)
Iterates over the bodies in the controller
source code
 
__eq__(a, b) source code
 
__ne__(self, other) source code
 
Step(...)
b2Controller_Step(b2Controller self, b2TimeStep step)
source code
 
Draw(...)
b2Controller_Draw(b2Controller self, b2DebugDraw debugDraw)
source code
 
AddBody(...)
b2Controller_AddBody(b2Controller self, b2Body body)
source code
 
RemoveBody(...)
b2Controller_RemoveBody(b2Controller self, b2Body body)
source code
 
Clear(...)
b2Controller_Clear(b2Controller self)
source code
 
GetType(...)
b2Controller_GetType(b2Controller self) -> b2ControllerType
source code
 
GetNext(...)
b2Controller_GetNext(b2Controller self) -> b2Controller
source code
 
GetWorld(...)
b2Controller_GetWorld(b2Controller self) -> b2World
source code
 
_GetBodyList(...)
b2Controller__GetBodyList(b2Controller self) -> b2ControllerEdge
source code
 
__hash__(...)
b2Controller___hash__(b2Controller self) -> int32
source code
 
_asBuoyancyController(...)
b2Controller__asBuoyancyController(b2Controller self) -> b2BuoyancyController
source code
 
_asConstantAccelController(...)
b2Controller__asConstantAccelController(b2Controller self) -> b2ConstantAccelController
source code
 
_asConstantForceController(...)
b2Controller__asConstantForceController(b2Controller self) -> b2ConstantForceController
source code
 
_asGravityController(...)
b2Controller__asGravityController(b2Controller self) -> b2GravityController
source code
 
_asTensorDampingController(...)
b2Controller__asTensorDampingController(b2Controller self) -> b2TensorDampingController
source code
Properties [hide private]
  thisown
The membership flag
  type
GetType(self) -> b2ControllerType
  bodyList
Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

typeName(self)

source code 

Return the name of the controller from:
 Unknown, Buoyancy, ConstantAccel, ConstantForce, Gravity, TensorDamping

Step(...)

source code 

b2Controller_Step(b2Controller self, b2TimeStep step)

Controllers override this to implement per-step functionality.

Draw(...)

source code 

b2Controller_Draw(b2Controller self, b2DebugDraw debugDraw)

Controllers override this to provide debug drawing.

AddBody(...)

source code 

b2Controller_AddBody(b2Controller self, b2Body body)

Adds a body to the controller list.

RemoveBody(...)

source code 

b2Controller_RemoveBody(b2Controller self, b2Body body)

Removes a body from the controller list.

Clear(...)

source code 

b2Controller_Clear(b2Controller self)

Removes all bodies from the controller list.

GetType(...)

source code 

b2Controller_GetType(b2Controller self) -> b2ControllerType

Get the type of the controller.

GetNext(...)

source code 

b2Controller_GetNext(b2Controller self) -> b2Controller

Get the next controller in the world's body list.

GetWorld(...)

source code 

b2Controller_GetWorld(b2Controller self) -> b2World

Get the parent world of this body.

_GetBodyList(...)

source code 

b2Controller__GetBodyList(b2Controller self) -> b2ControllerEdge

Get the attached body list.

__hash__(...)
(Hashing function)

source code 

b2Controller___hash__(b2Controller self) -> int32

Overrides: object.__hash__

Property Details [hide private]

thisown

The membership flag

type

GetType(self) -> b2ControllerType

Get the type of the controller.

bodyList

Get Method:
GetBodyList(self)