Package me.simulation.players
Class Ork
java.lang.Object
me.simulation.players.Champion
me.simulation.players.Ork
- All Implemented Interfaces:
DefaultRequired
,Interaction
Represents a Ork player in the simulation.
Extends the Champion class.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.simulation.players.Champion
getHp, getLevel, getLuck, getMaxHp, getMove, getRange, getRegeneration, getShield, getStrength, getSword, getType, getX_index, getY_index, increaseLevel, newIndex, setHp, setLuck, setMaxHp, setMove, setRegeneration, setShield, setStrength, setSword, takeDMG
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.simulation.game.DefaultRequired
getLvl
-
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 championlevel
- the level of the championmaxhp
- the maximum health points of the championhp
- the current health points of the championstrength
- the strength of the championrange
- the attack range of the championluck
- the luck attribute of the championmove
- the movement status of the championhas_shield
- the shield status of the championhas_sword
- the sword status of the championx_index
- the x-coordinate index of the champion's positiony_index
- the y-coordinate index of the champion's positionregeneration
- the regeneration status of the champion
-
-
Method Details
-
kill
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
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
-