PaintEvent.java 1.3 KB
Newer Older
Juon Kawakami's avatar
init  
Juon Kawakami committed
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package firesimulator.gui;

import firesimulator.simulator.Simulator;
import firesimulator.world.Building;
import firesimulator.world.World;
import java.awt.Graphics2D;

/**
 *
 * Created by Alireza Kandeh on March 2018
 */

public class PaintEvent {

	private Graphics2D graphics2D = null;
	private ScreenTransformExt transform = null;
	private Simulator simulator = null;
	private World world = null;
	private Building selectedBuilding = null;
	private int mouseX = 0;
	private int mouseY = 0;

	public PaintEvent(Graphics2D graphics2D, ScreenTransformExt transform, Simulator simulator, World world, Building selectedBuilding, int mouseX, int mouseY) {
		this.graphics2D = graphics2D;
		this.transform = transform;
		this.simulator = simulator;
		this.world = world;
		this.selectedBuilding = selectedBuilding;
		this.mouseX = mouseX;
		this.mouseY = mouseY;
	}

	public Graphics2D getGraphics2D() {
		return graphics2D;
	}

	public ScreenTransformExt getTransform() {
		return transform;
	}
	
	public Simulator getSimulator() {
		return simulator;
	}
	
	public World getWorld() {
		return world;
	}
	
	public Building getSelectedBuilding() {
		return selectedBuilding;
	}

	public int getMouseX() {
		return mouseX;
	}

	public int getMouseY() {
		return mouseY;
	}
	
}