#include <BodyObjectDesc.h>
Public Member Functions | |
| const ml7::Vector2 & | get_position () const |
| void | set_position (const ml7::Vector2 &position) |
| float | get_orientation () const |
| void | set_orientation (float orientation) |
Protected Member Functions | |
| BodyObjectDesc (ClassID class_id, unsigned id, const ml7::Vector2 &position, float orientation) | |
| BodyObjectDesc (const BodyObjectDesc &rhs) | |
| BodyObjectDesc & | operator= (const BodyObjectDesc &rhs) |
| virtual | ~BodyObjectDesc (void) |
The base body object description class.
| cyber::world::BodyObjectDesc::BodyObjectDesc | ( | ClassID | class_id, | |
| unsigned | id, | |||
| const ml7::Vector2 & | position, | |||
| float | orientation | |||
| ) | [protected] |
Explicit constructor.
| cyber::world::BodyObjectDesc::BodyObjectDesc | ( | const BodyObjectDesc & | rhs | ) | [protected] |
Copy constructor.
| cyber::world::BodyObjectDesc::~BodyObjectDesc | ( | void | ) | [protected, virtual] |
Destructor.
| float cyber::world::BodyObjectDesc::get_orientation | ( | ) | const [inline] |
Returns the angular orientation in world-space.
| const ml7::Vector2& cyber::world::BodyObjectDesc::get_position | ( | ) | const [inline] |
Returns the linear position in world-space.
| BodyObjectDesc & cyber::world::BodyObjectDesc::operator= | ( | const BodyObjectDesc & | rhs | ) | [protected] |
Copy assignment operator.
Reimplemented from cyber::world::ObjectDesc.
Reimplemented in cyber::world::blocks::BlockDesc, cyber::world::blocks::FixedBlockDesc, cyber::world::BoxBodyObjectDesc, cyber::world::PolyBodyObjectDesc, and cyber::world::SphereBodyObjectDesc.
| void cyber::world::BodyObjectDesc::set_orientation | ( | float | orientation | ) | [inline] |
Sets the angular orientation in world-space.
| void cyber::world::BodyObjectDesc::set_position | ( | const ml7::Vector2 & | position | ) | [inline] |
Sets the linear position in world-space.
1.6.1