|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--lane.sente.Turret
The purpose of this class is to hold information about turret aim It is also to determine (given a location) if another Element is in view It can also "fire" a projectile by giving it a position and speed
| Constructor Summary | |
Turret(Location loc)
the contructor for the turret |
|
| Method Summary | |
boolean |
canSee(GameElement ele)
decides if the turret is capable of seeing that particular element (note: it does not have enough information to determine visibility such as if that element is obstructed) |
int |
getxAim()
the method used to retrieve the degree value of the turret |
int |
getzAim()
the method used to retrieve the degree value of the turret |
void |
setProjectileMomentum(GameElement e,
int speed)
method used to set the x,y,and z speed of a projectile shot from this turret |
void |
setxAim(int i)
the method used to set the aim of the turret in the x Axis |
void |
setzAim(int i)
the method used to set the aim of the turret in the x Axis |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Turret(Location loc)
loc - The location that this turret is "looking" from| Method Detail |
public void setxAim(int i)
i - an int (0-360) signifying the degree to look atpublic void setzAim(int i)
i - an int (0-360) signifying the degree to look atpublic int getxAim()
public int getzAim()
public boolean canSee(GameElement ele)
ele - The other element to check for intersection with Turret's LOS
public void setProjectileMomentum(GameElement e,
int speed)
e - The element being shotspeed - The speed that the element should move at
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||