com.azalient.api.b.parameters
Interface IMotorType

All Superinterfaces:
IActionable, IAssociate, IDescribed, IDraggable, IPastable, IRecord, IType, RecordR, RecordRW, RecordW, SortableData, StoreRecordRW
All Known Subinterfaces:
ITransportType, IVehicleType

public interface IMotorType
extends IType

The base interface for a motorised type, used by both IVehicleType and ITransportType


Field Summary
 
Fields inherited from interface com.azalient.api.b.parameters.IType
ZERO
 
Fields inherited from interface com.azalient.api.ui.clipboard.IAssociate
scratch
 
Fields inherited from interface com.azalient.api.a.tables.IRecord
DELETED, KEY_SEP, KEY_SEP_CHAR
 
Method Summary
 double conflictFactor()
          Returns a factor that is used to increase the gap required by this vehicle when crossing conflicting streams of traffic
 IEngine engine()
          Returns a reference to the engine assigned to this type.
 int extraPeople()
          Returns the number of "extra" people in this vehicle.
 double gapFactor()
          Returns a factor that is used to increase the gap required by this vehicle when following other vehicles
 IXyz halfsize()
          An Xyz object holding the half-size dimensions, i.e.
 boolean isCycle()
          Returns true if this is a bicycle
 boolean isEmergency()
          Returns true if this is an emergency vehicle
 boolean isTaxi()
          Returns true if this is a taxi
 IMesh mesh(boolean flat, IXyz halfSize)
          Returns a mesh object for drawing in Solid or Outline mode
 double sideGap()
          Returns the preferred minimum gap to the side of this (vehicle) that is used when vehicles share lanes.
 double tyreFrictionSqRt()
          A tyre friction coefficient used to calculate turning speeds
 
Methods inherited from interface com.azalient.api.b.parameters.IType
attachedType, attachedType, attachmentAngle, attachmentAngle, attachmentCount, attachmentDistance, attachmentDistance, behaviour, colour, height, index, isAttached, keepSide, length, maxAcceleration, maxDeceleration, mode, name, rgb, shapeGroup, sizeVariation, space, unitShape, used, weightKG, width
 
Methods inherited from interface com.azalient.api.a.tables.IDescribed
description
 
Methods inherited from interface com.azalient.api.ui.clipboard.IPastable
finish, pickables
 
Methods inherited from interface com.azalient.api.ui.clipboard.IAssociate
clip, proxy, selected
 
Methods inherited from interface com.azalient.api.ui.clipboard.IDraggable
selected, selectedForDraggingDraw
 
Methods inherited from interface com.azalient.api.ui.clipboard.IActionable
action
 
Methods inherited from interface com.azalient.api.file.StoreRecordRW
canRename, rename, store
 
Methods inherited from interface com.azalient.api.file.RecordR
extraSet, finished, isApplicable, isEditable, set
 
Methods inherited from interface com.azalient.api.file.RecordW
extraCols, extraGet, extraGetB, extraGetD, extraGetI, extraGetS, extraGetT, get, isVolatile
 

Method Detail

engine

IEngine engine()
Returns a reference to the engine assigned to this type.


halfsize

IXyz halfsize()
An Xyz object holding the half-size dimensions, i.e. (half-length, half-width, half-height)


mesh

IMesh mesh(boolean flat,
           IXyz halfSize)
Returns a mesh object for drawing in Solid or Outline mode


sideGap

double sideGap()
Returns the preferred minimum gap to the side of this (vehicle) that is used when vehicles share lanes.


gapFactor

double gapFactor()
Returns a factor that is used to increase the gap required by this vehicle when following other vehicles


conflictFactor

double conflictFactor()
Returns a factor that is used to increase the gap required by this vehicle when crossing conflicting streams of traffic


tyreFrictionSqRt

double tyreFrictionSqRt()
A tyre friction coefficient used to calculate turning speeds


isCycle

boolean isCycle()
Returns true if this is a bicycle


isTaxi

boolean isTaxi()
Returns true if this is a taxi


isEmergency

boolean isEmergency()
Returns true if this is an emergency vehicle


extraPeople

int extraPeople()
Returns the number of "extra" people in this vehicle.