Package me.simulation.equipments
Class Chest
java.lang.Object
me.simulation.players.Champion
me.simulation.equipments.Kit
me.simulation.equipments.Chest
- All Implemented Interfaces:
DefaultRequired
Represents a Chest class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determines whether a mimic should be generated.static boolean
Determines what is inside a container.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
-
Chest
Constructs a new Chest object with the specified attributes.- Parameters:
type
- the type of the chestx_index
- the x-coordinate of the chest's positiony_index
- the y-coordinate of the chest's position
-
-
Method Details
-
isMimicGenerate
public static boolean isMimicGenerate()Determines whether a mimic should be generated.- Returns:
- true if a mimic should be generated, false otherwise
-
whatsInside
public static boolean whatsInside()Determines what is inside a container.- Returns:
- true if the container contains a sword, false if it contains a shield
-