public class Unit
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Double |
altitude
|
private java.lang.Integer |
armor
|
private Direction |
direction
|
private java.lang.Integer |
health
|
private java.lang.Integer |
id
|
private java.lang.String |
name
|
private Position |
position
|
private java.lang.Integer |
velocity
|
private java.util.ArrayList<Weapon> |
weapons
|
| Constructor and Description |
|---|
Unit() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getAltitude() |
java.lang.Integer |
getArmor() |
Direction |
getDirection() |
java.lang.Integer |
getHealth() |
java.lang.Integer |
getId() |
java.lang.String |
getName() |
Position |
getPosition() |
java.lang.Integer |
getVelocity() |
java.util.ArrayList<Weapon> |
getWeapons() |
void |
setAltitude(java.lang.Double altitude) |
void |
setArmor(java.lang.Integer armor) |
void |
setDirection(Direction direction) |
void |
setHealth(java.lang.Integer health) |
void |
setId(java.lang.Integer id) |
void |
setName(java.lang.String name) |
void |
setPosition(Position position) |
void |
setVelocity(java.lang.Integer velocity) |
void |
setWeapons(java.util.ArrayList<Weapon> weapons) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate java.lang.Integer id
private java.lang.String name
private java.lang.Integer health
private java.lang.Integer velocity
private Position position
private Direction direction
private java.lang.Double altitude
private java.util.ArrayList<Weapon> weapons
private java.lang.Integer armor
public Unit()
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
id - new value for idpublic java.lang.String getName()
public void setName(java.lang.String name)
name - new value for namepublic java.lang.Integer getHealth()
public void setHealth(java.lang.Integer health)
health - new value for healthpublic java.lang.Integer getArmor()
public void setArmor(java.lang.Integer armor)
armor - new value for armorpublic java.lang.Integer getVelocity()
public void setVelocity(java.lang.Integer velocity)
velocity - new value for velocitypublic Position getPosition()
public void setPosition(Position position)
positon - new value for positionpublic java.lang.Double getAltitude()
public void setAltitude(java.lang.Double altitude)
altitude - new value for altitudepublic java.util.ArrayList<Weapon> getWeapons()
public void setWeapons(java.util.ArrayList<Weapon> weapons)
weapons - new value for weaponspublic Direction getDirection()
public void setDirection(Direction direction)
direction - new value for direction