class Sector;
class CollisionGrid;
+enum CollisionGroup {
+ COLGROUP_DISABLED,
+ COLGROUP_MOVING,
+ COLGROUP_STATIC,
+ COLGROUP_MOVINGSTATIC,
+ COLGROUP_TOUCHABLE,
+
+ COLGROUP_TILEMAP /* not really used at the moment */
+};
+
/**
* Base class for all dynamic/moving game objects. This class contains things
* for handling the bounding boxes and collision feedback.
{
bbox.set_pos(pos);
}
+
+ CollisionGroup get_group() const
+ {
+ return group;
+ }
+
+ void set_group(CollisionGroup group)
+ {
+ this->group = group;
+ }
protected:
friend class Sector;
/** The movement that will happen till next frame
*/
Vector movement;
+ /** The collision group */
+ CollisionGroup group;
};
#endif