Documentation ¶
Index ¶
- func Parse(lexemes []*Lexeme) []any
- type Abandon
- type AssembleFactoryGroup
- type AssembleMineGroup
- type AssembleUnit
- type Bombard
- type Buy
- type CheckRebels
- type Claim
- type ConvertRebels
- type Coordinates
- type CounterAgents
- type Discharge
- type Draft
- type ExpandFactoryGroup
- type ExpandMineGroup
- type Grant
- type InciteRebels
- type Invade
- type Jump
- type Kind
- type Lexeme
- type Move
- type Name
- type NameUnit
- type News
- type PayAll
- type PayLocal
- type Probe
- type ProbeSystem
- type Raid
- type RationAll
- type RationLocal
- type RecycleFactoryGroup
- type RecycleMineGroup
- type RecycleUnit
- type RetoolFactoryGroup
- type Revoke
- type ScrapFactoryGroup
- type ScrapMineGroup
- type ScrapUnit
- type Secret
- type Sell
- type Setup
- type StealSecrets
- type StoreFactoryGroup
- type StoreMineGroup
- type StoreUnit
- type SupportAttack
- type SupportDefend
- type SuppressAgents
- type Survey
- type SurveySystem
- type Transfer
- type TransferDetail
- type Unit
- type Unknown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Abandon ¶
type Abandon struct { Line int Location Coordinates // location to be abandoned Errors []error }
type AssembleFactoryGroup ¶
type AssembleMineGroup ¶
type AssembleUnit ¶
type CheckRebels ¶
type Claim ¶
type Claim struct { Line int Id int // id of unit being ordered Location Coordinates // location to be claimed Errors []error }
type ConvertRebels ¶
type Coordinates ¶
type Coordinates struct {
X, Y, Z int
System string // suffix for multi-star system, A...Z
Orbit int
}
func (Coordinates) String ¶
func (c Coordinates) String() string
type CounterAgents ¶
type ExpandFactoryGroup ¶
type ExpandMineGroup ¶
type Grant ¶
type Grant struct { Line int Location Coordinates // coordinates of system and orbit Kind string // kind of grant TargetId int // nation to grant Errors []error }
type InciteRebels ¶
type Jump ¶
type Jump struct { Line int Id int // id of unit being ordered Location Coordinates // coordinates to move to Errors []error }
type Name ¶
type Name struct { Line int Location Coordinates // coordinates of system or orbit to name Name string // new name for system or orbit Errors []error }
type News ¶
type News struct { Line int Location Coordinates // location to send news to Article string Signature string Errors []error }
type ProbeSystem ¶
type ProbeSystem struct { Line int Id int // id of unit being ordered Location Coordinates // location to probe Errors []error }
type RationLocal ¶
type RecycleFactoryGroup ¶
type RecycleMineGroup ¶
type RecycleUnit ¶
type RetoolFactoryGroup ¶
type Revoke ¶
type Revoke struct { Line int Location Coordinates // coordinates of system and orbit Kind string // kind of grant TargetId int // nation to grant Errors []error }
type ScrapFactoryGroup ¶
type ScrapMineGroup ¶
type Setup ¶
type Setup struct { Line int Id int // id of unit establishing ship or colony Location Coordinates // location being set up Kind string // must be 'colony' or 'ship' Action string // must be 'transfer' Items []*TransferDetail Errors []error }
type StealSecrets ¶
type StoreFactoryGroup ¶
type StoreMineGroup ¶
type SupportAttack ¶
type SupportDefend ¶
type SuppressAgents ¶
type SurveySystem ¶
type SurveySystem struct { Line int Id int // id of unit being ordered Location Coordinates // location to survey Errors []error }
type TransferDetail ¶
func (*TransferDetail) String ¶
func (td *TransferDetail) String() string
Click to show internal directories.
Click to hide internal directories.