- magnitude() - Method in class com.jonathan.survivor.math.Vector2
-
Returns the magnitude of this vector.
- MainMenuScreen - Class in com.jonathan.survivor.screens
-
- MainMenuScreen(Survivor) - Constructor for class com.jonathan.survivor.screens.MainMenuScreen
-
- makeInvulnerable() - Method in class com.jonathan.survivor.entity.Human
-
Makes the Human invulnerable for a given amount of seconds.
- makeInvulnerable() - Method in class com.jonathan.survivor.entity.Player
-
Makes the player invulnerable from attacks for a given amount of seconds.
- makeInvulnerable() - Method in class com.jonathan.survivor.entity.Zombie
-
Makes the zombie invulnerable from the player's attacks for a given amount of seconds.
- MAX_WALK_SPEED - Static variable in class com.jonathan.survivor.entity.Player
-
Stores the maximum walk speed of the player in the horizontal direction.
- MAX_WORLD_SEED - Static variable in class com.jonathan.survivor.Profile
-
Stores the max world seed that will be used to create the world.
- melee() - Method in class com.jonathan.survivor.entity.Player
-
Makes the player swing his melee weapon if he has one.
- MELEE_BUTTON_COLOR - Static variable in class com.jonathan.survivor.hud.CombatHud
-
- MELEE_BUTTON_X_OFFSET - Static variable in class com.jonathan.survivor.hud.CombatHud
-
Stores the offsets of the melee button.
- MELEE_BUTTON_Y_OFFSET - Static variable in class com.jonathan.survivor.hud.CombatHud
-
- meleeHit(Zombie) - Method in class com.jonathan.survivor.entity.Player
-
Deals damage to the zombie with the player's melee weapon.
- MeleeWeapon - Class in com.jonathan.survivor.inventory
-
- MeleeWeapon(String, String, float, float) - Constructor for class com.jonathan.survivor.inventory.MeleeWeapon
-
Accepts the name, description, damage, and range of the melee weapon.
- mouseMoved(int, int) - Method in class com.jonathan.survivor.managers.InputManager
-
- moveDown() - Method in class com.jonathan.survivor.math.Cell
-
Moves the cell down by decrementing the row
- moveLeft() - Method in class com.jonathan.survivor.math.Cell
-
Moves the cell left by decrementing the column
- moveRight() - Method in class com.jonathan.survivor.math.Cell
-
Moves the cell right by incrementing the column
- moveTo(float, float, float) - Method in class com.jonathan.survivor.entity.GameObject
-
Moves the GameObject to the desired (x,y) position in a straight line at the given speed in m/s.
- moveUp() - Method in class com.jonathan.survivor.math.Cell
-
Moves the cell up by incrementing the row
- mul(float) - Method in class com.jonathan.survivor.math.Vector2
-
Multiplies this vector by a scalar.
- MusicManager - Class in com.jonathan.survivor.managers
-
- MusicManager() - Constructor for class com.jonathan.survivor.managers.MusicManager
-