WormAIDev  Worm SELF_VERSION
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
WormRoute Class Reference

Define the WormRoute class which holds the details about a planned route. More...

Public Member Functions

constructor WormRoute ()
 Constructor for WormRoute class.
function ResetRoute ()
 Resets variables in WormRoute class to default values.

Public Attributes

 Cargo = 0
 SourceID = 0
 DestID = 0
 SourceIsTown = false
 DestIsTown = false
 SourceLocation = 0
 DestLocation = 0
 IsSubsidy = false
 SourceList = null
 DestList = null
 CargoList = null
 double = null
 distance_manhattan = null

Detailed Description

Define the WormRoute class which holds the details about a planned route.

Member Function Documentation

function WormRoute::ResetRoute ( )
inline

Resets variables in WormRoute class to default values.

< The cargo selected to be transported.

< ID of source town or industry

< ID of destination town or industry

< Is the source a town or cargo producing industry

< Is the destination a town or cargo receiving industry

< Location (tile) of source

< Location (tile) of destionation

< Whether this route is built to get a subsidy or not

< Are we going to use double rail for this route or not

< Manhattan distance between SourceLocation and DestLocation


The documentation for this class was generated from the following file: