#include <World.h>
Public Member Functions | |
| World (void) | |
| ~World (void) | |
| const Camera * | get_camera () const |
| Camera * | get_camera () |
| const blocks::FixedBlockContainer * | get_fixed_blocks () const |
| const blocks::MovableBlockContainer * | get_movable_blocks () const |
| blocks::FixedBlock * | create_fixed_block (const ml7::Vector2 &position, float orientation, const bl7::geometry2::Poly &poly) |
| void | delete_fixed_block (blocks::FixedBlock *fixed_block) |
| void | init (const WorldDesc *world_desc) |
| void | reset () |
| void | destroy () |
| cyber::world::World::World | ( | void | ) |
Default constructor.
| cyber::world::World::~World | ( | void | ) |
Destructor.
| blocks::FixedBlock * cyber::world::World::create_fixed_block | ( | const ml7::Vector2 & | position, | |
| float | orientation, | |||
| const bl7::geometry2::Poly & | poly | |||
| ) |
Creates a new fixed block.
| void cyber::world::World::delete_fixed_block | ( | blocks::FixedBlock * | fixed_block | ) |
Deletes the given fixed block.
| void cyber::world::World::destroy | ( | ) |
Destroys the world and all of its objects.
| const Camera* cyber::world::World::get_camera | ( | ) | const [inline] |
Returns the camera object.
| Camera* cyber::world::World::get_camera | ( | ) | [inline] |
Returns the camera object.
| const blocks::FixedBlockContainer* cyber::world::World::get_fixed_blocks | ( | ) | const [inline] |
Returns the container for fixed blocks.
| const blocks::MovableBlockContainer* cyber::world::World::get_movable_blocks | ( | ) | const [inline] |
Returns the container for movable blocks.
| void cyber::world::World::init | ( | const WorldDesc * | world_desc | ) |
Completely (re-)initializes the world.
| void cyber::world::World::reset | ( | ) |
Resets the world to the initial constellation.
1.7.1