forked from mcyapan/CSCI205Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntity.java
More file actions
111 lines (83 loc) · 2.18 KB
/
Entity.java
File metadata and controls
111 lines (83 loc) · 2.18 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import java.awt.*;
public class Entity {
private int worldX, worldY;
private int speed;
private String direction;
private boolean collisionOn = false;
private Rectangle solidArea;
private int solidAreaDefaultX, solidAreaDefaultY;
public Entity() {
}
public int getWorldX() {
return worldX;
}
public void setWorldX(int worldX) {
this.worldX = worldX;
}
public int getWorldY() {
return worldY;
}
public void setWorldY(int worldY) {
this.worldY = worldY;
}
public int getSpeed() {
return speed;
}
public void setSpeed(int speed) {
this.speed = speed;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public boolean getCollisionOn() {
return collisionOn;
}
public void setCollisionOn(boolean collisionOn) {
this.collisionOn = collisionOn;
}
public Rectangle getSolidArea() {
return solidArea;
}
public void setSolidArea(Rectangle solidArea) {
this.solidArea = solidArea;
}
public int getSolidAreaDefaultX() {
return solidAreaDefaultX;
}
public void setSolidAreaDefaultX(int solidAreaDefaultX) {
this.solidAreaDefaultX = solidAreaDefaultX;
}
public int getSolidAreaDefaultY() {
return solidAreaDefaultY;
}
public void setSolidAreaDefaultY(int solidAreaDefaultY) {
this.solidAreaDefaultY = solidAreaDefaultY;
}
public int getSolidAreaX() {
return solidArea.x;
}
public int getSolidAreaY() {
return solidArea.y;
}
public int getSolidAreaWidth() {
return solidArea.width;
}
public int getSolidAreaHeight() {
return solidArea.height;
}
public void setSolidAreaX(int x) {
this.solidArea.x = x;
}
public void setSolidAreaY(int y) {
this.solidArea.y = y;
}
public void setSolidAreaWidth(int width) {
this.solidArea.width = width;
}
public void setSolidAreaHeight(int height) {
this.solidArea.height = height;
}
}