Class real_block3D

Inheritance Relationships

Base Types

Class Documentation

class real_block3D : public rer::client<real_block3D>, public cosm::repr::base_block3D

Base class for representing blocks (i.e. things that robots carry within the arena). Blocks have both real (where they actually live in the world) and discretized locations (where they are mapped to within the arena).

Public Functions

inline real_block3D(const rutils::color &color, const crepr::block_type &type)

The dimensions and arena_res fields are not used for real blocks (for now).

~real_block3D(void) override = default
inline std::unique_ptr<base_block3D> clone(void) const override
inline virtual void update_on_pickup(const rtypes::type_uuid &robot_id, const rtypes::timestep &t, const crops::block_pickup_owner &owner) override

Update block state given that it has been picked up.