Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockhouseView ¶
type BlockhouseView struct {
// HitsTaken corresponds to the JSON schema field "hitsTaken".
HitsTaken int `json:"hitsTaken" yaml:"hitsTaken" mapstructure:"hitsTaken"`
// Side corresponds to the JSON schema field "side".
Side int `json:"side" yaml:"side" mapstructure:"side"`
// X corresponds to the JSON schema field "x".
X int `json:"x" yaml:"x" mapstructure:"x"`
// Y corresponds to the JSON schema field "y".
Y int `json:"y" yaml:"y" mapstructure:"y"`
}
type StateView ¶
type StateView struct {
// Blockhouses corresponds to the JSON schema field "blockhouses".
Blockhouses []BlockhouseView `json:"blockhouses" yaml:"blockhouses" mapstructure:"blockhouses"`
// Impulse corresponds to the JSON schema field "impulse".
Impulse int `json:"impulse" yaml:"impulse" mapstructure:"impulse"`
// MatchId corresponds to the JSON schema field "matchId".
MatchId string `json:"matchId" yaml:"matchId" mapstructure:"matchId"`
// OwnTanks corresponds to the JSON schema field "ownTanks".
OwnTanks []TankView `json:"ownTanks" yaml:"ownTanks" mapstructure:"ownTanks"`
// The complete static terrain map, identical for both sides and never
// Line-of-Sight gated (unlike visibleTanks/blockhouses). Only non-Plain cells are
// included.
Terrain []TerrainView `json:"terrain" yaml:"terrain" mapstructure:"terrain"`
// VisibleTanks corresponds to the JSON schema field "visibleTanks".
VisibleTanks []TankView `json:"visibleTanks" yaml:"visibleTanks" mapstructure:"visibleTanks"`
}
type SubmitOrdersRequest ¶
type SubmitOrdersResponse ¶
type SurrenderRequest ¶
type SurrenderRequest struct {
// MatchId corresponds to the JSON schema field "matchId".
MatchId string `json:"matchId" yaml:"matchId" mapstructure:"matchId"`
}
type SurrenderResponse ¶
type SurrenderResponse struct {
// Surrendered corresponds to the JSON schema field "surrendered".
Surrendered bool `json:"surrendered" yaml:"surrendered" mapstructure:"surrendered"`
}
type TankOrder ¶
type TankOrder struct {
// Fire corresponds to the JSON schema field "fire".
Fire bool `json:"fire" yaml:"fire" mapstructure:"fire"`
// Heading corresponds to the JSON schema field "heading".
Heading int `json:"heading" yaml:"heading" mapstructure:"heading"`
// Speed corresponds to the JSON schema field "speed".
Speed int `json:"speed" yaml:"speed" mapstructure:"speed"`
// TankId corresponds to the JSON schema field "tankId".
TankId int `json:"tankId" yaml:"tankId" mapstructure:"tankId"`
// TargetX corresponds to the JSON schema field "targetX".
TargetX int `json:"targetX" yaml:"targetX" mapstructure:"targetX"`
// TargetY corresponds to the JSON schema field "targetY".
TargetY int `json:"targetY" yaml:"targetY" mapstructure:"targetY"`
// TurretHeading corresponds to the JSON schema field "turretHeading".
TurretHeading int `json:"turretHeading" yaml:"turretHeading" mapstructure:"turretHeading"`
// TurretHold corresponds to the JSON schema field "turretHold".
TurretHold bool `json:"turretHold" yaml:"turretHold" mapstructure:"turretHold"`
}
type TankView ¶
type TankView struct {
// Ammo corresponds to the JSON schema field "ammo".
Ammo int `json:"ammo" yaml:"ammo" mapstructure:"ammo"`
// Heading corresponds to the JSON schema field "heading".
Heading int `json:"heading" yaml:"heading" mapstructure:"heading"`
// HitsTaken corresponds to the JSON schema field "hitsTaken".
HitsTaken int `json:"hitsTaken" yaml:"hitsTaken" mapstructure:"hitsTaken"`
// Id corresponds to the JSON schema field "id".
Id int `json:"id" yaml:"id" mapstructure:"id"`
// Side corresponds to the JSON schema field "side".
Side int `json:"side" yaml:"side" mapstructure:"side"`
// Speed corresponds to the JSON schema field "speed".
Speed int `json:"speed" yaml:"speed" mapstructure:"speed"`
// TurretHeading corresponds to the JSON schema field "turretHeading".
TurretHeading int `json:"turretHeading" yaml:"turretHeading" mapstructure:"turretHeading"`
// X corresponds to the JSON schema field "x".
X int `json:"x" yaml:"x" mapstructure:"x"`
// Y corresponds to the JSON schema field "y".
Y int `json:"y" yaml:"y" mapstructure:"y"`
}
type TerrainView ¶
type TerrainView struct {
// 0=Plain, 1=Forest, 2=Water, 3=Mountain. Only non-Plain cells are ever sent.
Type int `json:"type" yaml:"type" mapstructure:"type"`
// X corresponds to the JSON schema field "x".
X int `json:"x" yaml:"x" mapstructure:"x"`
// Y corresponds to the JSON schema field "y".
Y int `json:"y" yaml:"y" mapstructure:"y"`
}
Click to show internal directories.
Click to hide internal directories.