-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vulture.java
executable file
·32 lines (29 loc) · 1.05 KB
/
Vulture.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class vulture here.
*
* @author (João Paulo S. Abreu ([email protected]), Mateus C. Moura
* ([email protected]), Rafael P. Casaes Sampaio
* ([email protected]),
* Uanderson S. Celestino ([email protected]), Lílian T. de
* Sousa ([email protected]), Jefferson Aimon de B. Silva
* ([email protected]))
* @version (a version number or a date)
*/
public class Vulture extends AllObjects {
/* construtor */
public Vulture() {
// chama a imagem referente a classe, através de setter
setImage("urubu.png");
}
/**
* Act - do whatever the vulture wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
@Override
public void act() {
// método usado para movimentar o objeto horizontalmente(X), sendo da direita
// para esquerda(-1)
moveEnemies();
}
}