All Packages Class Hierarchy This Package Previous Next Index
Class com.loki3.cyber.pawn.PawnMaker
java.lang.Object
|
+----com.loki3.cyber.pawn.PawnMaker
- public class PawnMaker
- extends java.lang.Object
Support class for creating Pawn objects. A Pawn is the basic
object which can move, scan, etc.
This object is referenced by Import to set the properties of a pawn.
Use the properties listed here directly (e.g. <maxspeed>5</maxspeed>).
The methods represent sub-objects. Drop the 'set' when referencing
from a scenario and reference the sub-object properties from within
(e.g. <weapon> <hitpoints>5</hitpoints> </weapon>).
- See Also:
- Pawn
Acceleration- maximum rate at which unit's speed can change per tick
AngleAcceleration- maximum angle in degrees at which unit's direction can change per tick
energy- object which tracks unit's energy usage and capabilities.
HitPoints- amount of damage unit can take before being destroyed
identity- object which tracks unit's identity
MaxSpeed- maximum speed unit can reach
Orientation- if velocity is 0, this represents direction
Size- width, length, height of unit
Velocity- initial velocity (speed and direction)
Where- initial location
PawnMaker()
-
makeObject()
-
setScanner(Scanner)
- add a new scanner
setTool(Tool)
- add a new tool
setWeapon(Weapon)
- add a new weapon
Where
public Vector Where
initial location
Velocity
public Vector Velocity
initial velocity (speed and direction)
Orientation
public Vector Orientation
if velocity is 0, this represents direction
Size
public Vector Size
width, length, height of unit
HitPoints
public double HitPoints
amount of damage unit can take before being destroyed
MaxSpeed
public double MaxSpeed
maximum speed unit can reach
Acceleration
public double Acceleration
maximum rate at which unit's speed can change per tick
AngleAcceleration
public double AngleAcceleration
maximum angle in degrees at which unit's direction can change per tick
energy
public Energy energy
object which tracks unit's energy usage and capabilities.
- See Also:
- EnergyMaker
identity
public Identity identity
object which tracks unit's identity
- See Also:
- IdentityMaker
PawnMaker
public PawnMaker()
makeObject
public java.lang.Object makeObject()
setWeapon
public void setWeapon(Weapon weapon)
add a new weapon
setScanner
public void setScanner(Scanner scanner)
add a new scanner
setTool
public void setTool(Tool tool)
add a new tool
All Packages Class Hierarchy This Package Previous Next Index