Class Ork

All Implemented Interfaces:
DefaultRequired, Interaction

public class Ork extends Champion implements Interaction
Represents a Ork player in the simulation. Extends the Champion class.
  • Constructor Details

    • Ork

      public Ork(String type, int level, int maxhp, int hp, int strength, int range, int luck, boolean move, boolean has_shield, boolean has_sword, int x_index, int y_index, boolean regeneration)
      Constructor for creating an Ork object.
      Parameters:
      type - the type of the champion
      level - the level of the champion
      maxhp - the maximum health points of the champion
      hp - the current health points of the champion
      strength - the strength of the champion
      range - the attack range of the champion
      luck - the luck attribute of the champion
      move - the movement status of the champion
      has_shield - the shield status of the champion
      has_sword - the sword status of the champion
      x_index - the x-coordinate index of the champion's position
      y_index - the y-coordinate index of the champion's position
      regeneration - the regeneration status of the champion
  • Method Details

    • kill

      public static String kill(String Opponent)
      Kills the opponent and returns a string describing the action.
      Parameters:
      Opponent - the name of the opponent being killed
      Returns:
      a string describing the kill action
    • pickUp

      public static String pickUp(String Kit)
      Picks up a kit and returns a string describing the action.
      Parameters:
      Kit - the name of the kit being picked up
      Returns:
      a string describing the pickup action