src/supertux/moving_object.hpp File Reference

#include <stdint.h>
#include "math/rectf.hpp"
#include "supertux/collision_hit.hpp"
#include "supertux/game_object.hpp"

Go to the source code of this file.

Classes

class  MovingObject
 Base class for all dynamic/moving game objects. More...

Enumerations

enum  CollisionGroup {
  COLGROUP_DISABLED = 0, COLGROUP_MOVING_STATIC, COLGROUP_MOVING, COLGROUP_MOVING_ONLY_STATIC,
  COLGROUP_STATIC, COLGROUP_TOUCHABLE
}


Enumeration Type Documentation

enum CollisionGroup

Enumerator:
COLGROUP_DISABLED  Objects in DISABLED group are not tested for collisions.
COLGROUP_MOVING_STATIC  Tested against:
  • tiles + attributes
  • static obstacles
  • touchables
  • other moving objects and it counts as an obstacle during static collision phase.

Use for kinematic moving objects like platforms and rocks.

COLGROUP_MOVING  Tested against:
  • tiles + attributes
  • static obstacles
  • touchables
  • other moving objects.

Use for ordinary objects.

COLGROUP_MOVING_ONLY_STATIC  Tested against:
  • tiles + attributes
  • static obstacles.

Use for interactive particles and decoration.

COLGROUP_STATIC  Tested against:
  • moving objects and it counts as an obstacle during static collision phase.

Use for static obstacles that Tux walks on.

COLGROUP_TOUCHABLE  Tested against:
  • moving objects.

Use for triggers like spikes/areas or collectibles like coins.

Definition at line 29 of file moving_object.hpp.

00029                     {
00031   COLGROUP_DISABLED = 0,
00032 
00041   COLGROUP_MOVING_STATIC,
00042 
00050   COLGROUP_MOVING,
00051 
00057   COLGROUP_MOVING_ONLY_STATIC,
00058 
00064   COLGROUP_STATIC,
00065 
00070   COLGROUP_TOUCHABLE
00071 };


Generated on Mon Jun 9 03:38:27 2014 for SuperTux by  doxygen 1.5.1