org.starhope.appius.game
Class VehicleStyle

java.lang.Object
  extended by org.starhope.appius.game.VehicleStyle

public class VehicleStyle
extends Object

What style(s) of vehicles are permitted in a room, and where. Note that this relies upon vehicles being both equipped in the vehicle slot, and also providing a passive effects system that can be interrogated as to the nature of the vehicle.

Author:
brpocock@star-hope.org

Field Summary
static VehicleStyle ANY
          Any vehicles are allowed, anywhere, there are no limits; default for Tootsville™ and any room that does not express a preference.
static VehicleStyle DRIVE_ON_DRIVE
          All vehicles are only allowed, but only allowed in the $drive space in the room.
private  boolean limitToDriveSpace
          Limit vehicles to the driveable space defined as $drive
static VehicleStyle NO_VEHICLES
          No vehicles are permitted, at all.
private  boolean permitFloating
          Whether floating (in the sense of flying) vehicles are permitted
private  boolean permitMounts
          Whether mounted vehicles (e.g.
private  boolean permitWheeled
          Whether wheeled or dragged (e.g.
 
Constructor Summary
VehicleStyle(boolean allowWheeled, boolean allowMounted, boolean allowFloating, boolean driveOnDrive)
          WRITEME: Document this constructor brpocock@star-hope.org
 
Method Summary
 boolean isLimitToDriveSpace()
           
 boolean isPermitFloating()
           
 boolean isPermitMounts()
           
 boolean isPermitWheeled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

permitWheeled

private final boolean permitWheeled
Whether wheeled or dragged (e.g. ski) vehicles are permitted.


permitMounts

private final boolean permitMounts
Whether mounted vehicles (e.g. horses) are permitted


permitFloating

private final boolean permitFloating
Whether floating (in the sense of flying) vehicles are permitted


limitToDriveSpace

private final boolean limitToDriveSpace
Limit vehicles to the driveable space defined as $drive


ANY

public static final VehicleStyle ANY
Any vehicles are allowed, anywhere, there are no limits; default for Tootsville™ and any room that does not express a preference.


DRIVE_ON_DRIVE

public static final VehicleStyle DRIVE_ON_DRIVE
All vehicles are only allowed, but only allowed in the $drive space in the room.


NO_VEHICLES

public static final VehicleStyle NO_VEHICLES
No vehicles are permitted, at all. Note that there is an exceptional case available for specific vehicles that might occupy a vehicle slot, but not be considered as vehicles, e.g. in Tootsville the Lightfield is equipped as a vehicle. Wheelchairs or similar might likewise be exempted.

Constructor Detail

VehicleStyle

public VehicleStyle(boolean allowWheeled,
                    boolean allowMounted,
                    boolean allowFloating,
                    boolean driveOnDrive)
WRITEME: Document this constructor brpocock@star-hope.org

Parameters:
allowWheeled - allow wheeled, dragged, and similar objects
allowMounted - allow mounts such as horses, dogs, dragons, whatever
allowFloating - allow floating vehicles
driveOnDrive - limit vehicles to only the driveway
Method Detail

isLimitToDriveSpace

public boolean isLimitToDriveSpace()
Returns:
the limitToDriveSpace

isPermitFloating

public boolean isPermitFloating()
Returns:
the permitFloating

isPermitMounts

public boolean isPermitMounts()
Returns:
the permitMounts

isPermitWheeled

public boolean isPermitWheeled()
Returns:
the permitWheeled