- void set_group(CollisionGroup group)
- {
- this->group = group;
- }
-
- // --- BEGIN METHODS TO EXPOSE TO SQUIRREL --- //
- void set_solid(bool solid)
- {
- this->solid = solid;
- }
- bool is_solid() const
- {
- return solid;
- }
- void move(float x, float y)
- {
- bbox.move(Vector(x, y));
- }
- void set_pos(float x, float y)
- {
- set_pos(Vector(x, y));
- }
- float get_pos_x() const
- {
- return bbox.get_left();
- }
- float get_pos_y() const
- {
- return bbox.get_top();
- }
- void set_size(float w, float h)
- {
- dest.set_size(w, h);
- bbox.set_size(w, h);
- }
- float get_width() const
- {
- return bbox.get_width();
- }
- float get_height() const
- {
- return bbox.get_height();
- }
- void set_velocity(float x, float y)
- {
- movement = Vector(x, y);
- }
- float get_velocity_x() const
- {
- return movement.x;
- }
- float get_velocity_y() const
- {
- return movement.y;
- }
- // --- END METHODS TO EXPOSE TO SQUIRREL --- //
-