Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType int
const ( ActionTypeUnknown ActionType = iota ActionTypePickup ActionTypeAdded ActionTypeSelectShip ActionTypeHyper ActionTypeLevelUp ActionTypeScrap ActionTypeAttack ActionTypeRepair ActionTypeSelfRep ActionTypeChangeShip ActionTypeAutoRep )
type Added ¶
type Added struct {
PilotName string
// contains filtered or unexported fields
}
func AddedFromCSVRecord ¶
func (*Added) ActionType ¶
func (a *Added) ActionType() ActionType
type Attack ¶
type Attack struct {
Outgoing bool
EnemyPilot string
TargetDamage int
TargetHitpointsRemaining int
// Round 43+
PlayerDamageTaken int
PlayerHitpointsRemaining int
// contains filtered or unexported fields
}
func AttackFromCSVRecord ¶
func (*Attack) ActionType ¶
func (a *Attack) ActionType() ActionType
func (*Attack) IsSuicidalAttack ¶
type Hyper ¶
func HyperFromCSVRecord ¶
func (*Hyper) ActionType ¶
func (h *Hyper) ActionType() ActionType
type LevelUp ¶
func LevelUpFromCSVRecord ¶
func (*LevelUp) ActionType ¶
func (l *LevelUp) ActionType() ActionType
type Pickup ¶
type Pickup struct {
Type PickupType
// contains filtered or unexported fields
}
func PickupFromCSVRecord ¶
func (*Pickup) ActionType ¶
func (p *Pickup) ActionType() ActionType
type PickupType ¶
type PickupType int
const ( PTNone PickupType = iota PTFreeAttack PTTripleAttack PTExplosive50 PTExplosive250 PTExplosive450 PTRepair150 PTRepair200 PTRepair300 PTPoints100 PTPoints150 PTPoints250 PTPoints300 PTInvulnerability PTHalfMaxRepair PTGateIntel PTDecoy PTRandomHyperGate )
func (PickupType) String ¶
func (pt PickupType) String() string
type Repair ¶
type Repair struct {
Outgoing bool
FriendlyPilot string
TargetHitpoints int
TargetHitpointsRemaining int
// Round 43+
PlayerDamageTaken int
PlayerHitpointsRemaining int
// contains filtered or unexported fields
}
func RepairFromCSVRecord ¶
func (*Repair) ActionType ¶
func (r *Repair) ActionType() ActionType
func (*Repair) IsSuicidalRepair ¶
type Scrap ¶
type Scrap struct {
Type ScrapActionType
Amount int
// contains filtered or unexported fields
}
func ScrapFromCSVRecord ¶
func (*Scrap) ActionType ¶
func (s *Scrap) ActionType() ActionType
type ScrapActionType ¶
type ScrapActionType int
const ( ScrapActionTypeUnknown ScrapActionType = iota ScrapActionTypeRetrieved ScrapActionTypeDumped )
type SelectShip ¶
type SelectShip struct {
ShipType string
// contains filtered or unexported fields
}
func SelectShipFromCSVRecord ¶
func SelectShipFromCSVRecord(record []string) (*SelectShip, error)
func (*SelectShip) ActionType ¶
func (s *SelectShip) ActionType() ActionType
func (*SelectShip) String ¶
func (s *SelectShip) String() string
func (*SelectShip) Tick ¶
func (s *SelectShip) Tick() int
type SelfRep ¶
type SelfRep struct {
// contains filtered or unexported fields
}
func SelfRepFromCSVRecord ¶
func (*SelfRep) ActionType ¶
func (s *SelfRep) ActionType() ActionType
Click to show internal directories.
Click to hide internal directories.