CrashAI

Class Servable

[CrashAI] modules/servable.nut:4
Class Hierarchy:
Storage
   Storable
      Servable

Base Serv-able class for store either town or industry handling in game

Member Summary
any_API
        Documentation not available.
 constructor()
        < common API function to be used by this class
anyGetName()
        Get the name of servable object
anyIsTown()
        Get type of servable object
anyGetLocation()
        Get the location of servable object
static anyNewTown(id)
        New Servable Town
static anyNewIndustry(id)
        New Servable Industry
static anyNew(id, istown)
        New Unknown Servable
static anyMakeClass(storage)
        Make class from storage
Members inherited from Storable
GetID, SetID
Members inherited from Storage
_storage, GetStorage, SetStorage


Member Details

_API

[CrashAI] modules/servable.nut:6
_API : any
Documentation not available.


constructor

[CrashAI] modules/servable.nut:7
constructor()
< common API function to be used by this class


GetName

[CrashAI] modules/servable.nut:18
GetName() : any
Get the name of servable object
Returns:
string name


IsTown

[CrashAI] modules/servable.nut:24
IsTown() : any
Get type of servable object
Returns:
true if Town or false if Industry


GetLocation

[CrashAI] modules/servable.nut:30
GetLocation() : any
Get the location of servable object
Returns:
tile index of location


NewTown

[CrashAI] modules/servable.nut:35
static NewTown(id) : any
New Servable Town


NewIndustry

[CrashAI] modules/servable.nut:46
static NewIndustry(id) : any
New Servable Industry


New

[CrashAI] modules/servable.nut:58
static New(id, istown) : any
New Unknown Servable


MakeClass

[CrashAI] modules/servable.nut:68
static MakeClass(storage) : any
Make class from storage
Parameters:
storage
to build the class from