Package de.tum.cit.ase.maze.utils
Record Class CONSTANTS
java.lang.Object
java.lang.Record
de.tum.cit.ase.maze.utils.CONSTANTS
Saves constants
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Filter bit for Collectablestatic final boolean
Tells if the game is in development mode.static final short
Filter bit defaultstatic final short
Filter bit for Enemystatic final short
Filter bit IGNOREstatic final short
Filter bit for Box2dLightsstatic final short
Filter bit for Playerstatic final int
The maximal health a player has.static final float
Scale factor to convert Box2d meter to pixel.static final float
static final short
Filter bit for Box2d sensor -
Constructor Summary
-
Method Summary
-
Field Details
-
PPM
public static final float PPMScale factor to convert Box2d meter to pixel. Getting Box2D units: Multiply by PPM. Giving to Box2D units: divide by PPM.e.g. getting position multiply. setting position divide.
- See Also:
-
PLAYER_MAX_HEALTH
public static final int PLAYER_MAX_HEALTHThe maximal health a player has.- See Also:
-
DEBUG
public static final boolean DEBUGTells if the game is in development mode.- See Also:
-
SCALE
public static final float SCALE- See Also:
-
DEFAULT_BIT
public static final short DEFAULT_BITFilter bit default- See Also:
-
SENSOR_BIT
public static final short SENSOR_BITFilter bit for Box2d sensor- See Also:
-
LIGHT_BIT
public static final short LIGHT_BITFilter bit for Box2dLights- See Also:
-
PLAYER_BIT
public static final short PLAYER_BITFilter bit for Player- See Also:
-
ENEMY_BIT
public static final short ENEMY_BITFilter bit for Enemy- See Also:
-
COLLECTABLE_BIT
public static final short COLLECTABLE_BITFilter bit for Collectable- See Also:
-
IGNORE_GROUP_BIT
public static final short IGNORE_GROUP_BITFilter bit IGNORE- See Also:
-
-
Constructor Details
-
CONSTANTS
public CONSTANTS()Creates an instance of aCONSTANTS
record class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-