Class CharacterWASD

java.lang.Object
de.tum.cit.fop.maze.MVC.CharacterWASD

public class CharacterWASD extends Object
Handles player input for WASD movement and attack animations.
  • Constructor Details

    • CharacterWASD

      public CharacterWASD()
  • Method Details

    • yAxis

      public static boolean yAxis(Player player, MazeRunnerGame game)
      Handles vertical (Y-axis) player movement input.
      Parameters:
      player - The player to move
      game - Game instance for input settings
      Returns:
      True if player is moving vertically
    • xAxis

      public static boolean xAxis(Player player, MazeRunnerGame game)
      Handles horizontal (X-axis) player movement input.
      Parameters:
      player - The player to move
      game - Game instance for input settings
      Returns:
      True if player is moving horizontally
    • attackChange

      public static void attackChange(Player player, MazeRunnerGame game)
      Changes player animation to appropriate attack direction.
      Parameters:
      player - The player performing attack
      game - Game instance for animation data