java.lang.Objectgreenfoot.Actor
Moving
Element
Monster
public class Monster
Write a description of class Monster here.
| Field Summary | |
|---|---|
protected int |
live
|
protected java.lang.String[] |
picslinks
|
protected java.lang.String[] |
picsoben
|
protected java.lang.String[] |
picsrechts
|
protected java.lang.String[] |
picsunten
|
protected int |
sichtweite
|
protected int |
size
|
protected double |
step
|
| Fields inherited from class Moving |
|---|
animationspeed |
| Constructor Summary | |
|---|---|
Monster()
|
|
| Method Summary | |
|---|---|
void |
act()
Act - do whatever the Monster wants to do. |
void |
setLocation(int x,
int y,
boolean checkBeforeMoving)
Überschreibt setLocation und bewegt den Actor nur wenn die Maske es zulässt und er nicht aus dem Bild läuft |
| Methods inherited from class Moving |
|---|
getOneTouching, getTouching, isTouching, isTouching, move |
| Methods inherited from class greenfoot.Actor |
|---|
addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getX, getY, intersects, move, setImage, setImage, setLocation, setRotation, turn, turnTowards |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int live
protected java.lang.String[] picslinks
protected java.lang.String[] picsoben
protected java.lang.String[] picsrechts
protected java.lang.String[] picsunten
protected int sichtweite
protected int size
protected double step
| Constructor Detail |
|---|
public Monster()
| Method Detail |
|---|
public void act()
act in class Element
public void setLocation(int x,
int y,
boolean checkBeforeMoving)
x - Neue-X-Koordinatey - Neue-Y-KoordinatecheckBeforeMoving - Wenn TRUE wird Linch nur bewegt wenn er nicht aus dem Bild läuft und die Maske es zulässt