-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEffects.java
More file actions
35 lines (28 loc) · 776 Bytes
/
Effects.java
File metadata and controls
35 lines (28 loc) · 776 Bytes
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
33
34
35
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* The parent class for the effects that show up
*
* @author (James Lu)
* @version (1.0)
*/
public class Effects extends Actor
{
protected Map m;
protected GreenfootImage bg;
protected GreenfootImage blank;
protected GreenfootImage[] cache;
protected int counter; //increases every act
protected boolean show; //whether to show this or not
public Effects(){
blank = new GreenfootImage ("blank.png");
}
protected void addedToWorld(World world){
m = (Map) world;
}
/**
* Passes true to make the effect show on the screen
*/
public void show(boolean b){
show = b;
}
}