objects
Class WeaponType

java.lang.Object
  |
  +--objects.WeaponType

public final class WeaponType
extends java.lang.Object

This class holds constants for the various weapon types, and the mapping to textual names.

Author:
Sverre H. Huseby <shh@thathost.com>

Field Summary
static byte BOMB
          The targeting bomb
static byte NONE
          No weapon.
static byte PHASER
          The phaser
 
Constructor Summary
WeaponType()
           
 
Method Summary
static java.lang.String getName(byte weapon)
          Gets a textual name given a weapon constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final byte NONE
No weapon.

See Also:
Constant Field Values

PHASER

public static final byte PHASER
The phaser

See Also:
Constant Field Values

BOMB

public static final byte BOMB
The targeting bomb

See Also:
Constant Field Values
Constructor Detail

WeaponType

public WeaponType()
Method Detail

getName

public static final java.lang.String getName(byte weapon)
Gets a textual name given a weapon constant.

Parameters:
weapon - the weapon constant.
Returns:
a string.