Constructor and Description |
---|
Monster()
creates a monster with 20 hitPoints and 10 attack and no random movement
|
Monster(int typeOfMovement)
creates a player with 20 hitPoints and 10 attack
|
Monster(int hitPoints,
int attack,
int typeOfMovement)
creates a player with 20 hitPoints and 10 attack
|
Monster(int hp,
int att,
int typeOfMovement,
int points)
creates a monster with the makers preference of status
|
Modifier and Type | Method and Description |
---|---|
void |
attacking(Player mainChar)
a method for attacking the player
|
int |
getAttack() |
int[] |
getDirection(int[] playerPosition)
chooses what direction the monster moves in
|
int |
getHitPoints() |
char |
getIcon()
This is the getter to figure out what piece icon it is.
|
int |
getPointValue()
get the point value of the Monster
|
String |
getTypeOfPiece()
this gets the type of piece of the monster
|
void |
setAttack(int attack)
sets the attack of the monster
|
void |
setHitPoints(int newHp)
sets the hitPoints of the monster
|
void |
setIcon(char NewIcon)
This is the setter for the Icon it will be
|
void |
setLevelBonus(int level)
a method that boosts stats on Monster for each level
i.e.
|
void |
setMonsterPosition(int x,
int y) |
void |
setPointValue(int pointValue)
sets the pointValue of the Monster
|
void |
setTypeOfPiece(String newTypeOfPiece)
this sets the type of piece of the monster
|
public Monster()
public Monster(int typeOfMovement)
typeOfMovement
- whether or not the monster will move randomly or notpublic Monster(int hitPoints, int attack, int typeOfMovement)
hitPoints
- the monster's hitPointsattack
- the monster's attacktypeOfMovement
- whether or not the monster will move randomly or notpublic Monster(int hp, int att, int typeOfMovement, int points)
hp
- hit points of the monsteratt
- the attack power of the monstertypeOfMovement
- determines whether it is random or notpoints
- determines how many points it is.public int getHitPoints()
public void setHitPoints(int newHp)
newHp
- is the new hp for the monsterpublic void setAttack(int attack)
attack
- the attack points of the monsterpublic int getAttack()
public int getPointValue()
public void setPointValue(int pointValue)
pointValue
- number of points for killing the bat.public String getTypeOfPiece()
getTypeOfPiece
in interface GamePiece
public void setTypeOfPiece(String newTypeOfPiece)
setTypeOfPiece
in interface GamePiece
newTypeOfPiece
- is the type of piece that will be in the gamepublic char getIcon()
public void setIcon(char NewIcon)
public void setLevelBonus(int level)
level
- the current level the player is onpublic void attacking(Player mainChar)
mainChar
- the player being attackedpublic void setMonsterPosition(int x, int y)
public int[] getDirection(int[] playerPosition)
playerPosition
- current position of the player