Package me.simulation.players
Class Human
java.lang.Object
me.simulation.players.Champion
me.simulation.players.Human
- All Implemented Interfaces:
DefaultRequired
Represents a Human 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
-
Human
public Human(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) Constructs a Human object with the specified attributes.- Parameters:
type
- the type of the Humanlevel
- the level of the Humanmaxhp
- the maximum hit points of the Humanhp
- the current hit points of the Humanstrength
- the strength of the Humanrange
- the attack range of the Humanluck
- the luck factor of the Humanmove
- indicates if the Human can movehas_shield
- indicates if the Human has a shieldhas_sword
- indicates if the Human has a swordx_index
- the x index position of the Humany_index
- the y index position of the Humanregeneration
- indicates if the Human has regeneration ability
-
-
Method Details
-
kill
Simulates the act of killing an opponent.- Parameters:
Opponent
- the name of the opponent being killed- Returns:
- a string indicating that the Human killed the opponent
-
pickUp
Simulates the act of picking up a kit.- Parameters:
Kit
- the name of the kit being picked up- Returns:
- a string indicating that the Human picked up the kit
-