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

Variable Index

 o Acceleration
maximum rate at which unit's speed can change per tick
 o AngleAcceleration
maximum angle in degrees at which unit's direction can change per tick
 o energy
object which tracks unit's energy usage and capabilities.
 o HitPoints
amount of damage unit can take before being destroyed
 o identity
object which tracks unit's identity
 o MaxSpeed
maximum speed unit can reach
 o Orientation
if velocity is 0, this represents direction
 o Size
width, length, height of unit
 o Velocity
initial velocity (speed and direction)
 o Where
initial location

Constructor Index

 o PawnMaker()
 

Method Index

 o makeObject()
 
 o setScanner(Scanner)
add a new scanner
 o setTool(Tool)
add a new tool
 o setWeapon(Weapon)
add a new weapon

Field Detail

 o Where
public Vector Where
          initial location
 o Velocity
public Vector Velocity
          initial velocity (speed and direction)
 o Orientation
public Vector Orientation
          if velocity is 0, this represents direction
 o Size
public Vector Size
          width, length, height of unit
 o HitPoints
public double HitPoints
          amount of damage unit can take before being destroyed
 o MaxSpeed
public double MaxSpeed
          maximum speed unit can reach
 o Acceleration
public double Acceleration
          maximum rate at which unit's speed can change per tick
 o AngleAcceleration
public double AngleAcceleration
          maximum angle in degrees at which unit's direction can change per tick
 o energy
public Energy energy
          object which tracks unit's energy usage and capabilities.
See Also:
EnergyMaker
 o identity
public Identity identity
          object which tracks unit's identity
See Also:
IdentityMaker

Constructor Detail

 o PawnMaker
public PawnMaker()

Method Detail

 o makeObject
public java.lang.Object makeObject()
 o setWeapon
public void setWeapon(Weapon weapon)
          add a new weapon
 o setScanner
public void setScanner(Scanner scanner)
          add a new scanner
 o setTool
public void setTool(Tool tool)
          add a new tool

All Packages  Class Hierarchy  This Package  Previous  Next  Index