public class Ghost extends Monster
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
dcol |
(package private) int |
drow |
(package private) java.awt.Image |
img |
| Constructor and Description |
|---|
Ghost(Game game,
int row,
int col,
int drow,
int dcol)
Constructor for Ghost
|
| Modifier and Type | Method and Description |
|---|---|
void |
attackAction(Player p)
Overridden attackAction method.
|
void |
draw(java.awt.Graphics g)
Overridden draw method.
|
void |
update()
Overridden update method.
|
public Ghost(Game game, int row, int col, int drow, int dcol)
game - Game objectrow - row valuecol - col valuedrow - rowspeeddcol - colspeedpublic void attackAction(Player p)
attackAction in class Monsterp - Player Objectpublic void draw(java.awt.Graphics g)