Documentation ¶
Index ¶
- func CalculateDistanceBetweenWaypoints(x1, y1, x2, y2 int) float64
- type Agent
- type Contract
- type Faction
- type Item
- type PriorityQueue
- type Ship
- func (s *Ship) CalculateFuelRequired(distance float64, flightMode models.FlightMode) int
- func (s *Ship) CalculateTravelTime(distance float64, flightMode models.FlightMode) int
- func (s *Ship) Chart() (*models.Chart, *models.Waypoint, error)
- func (s *Ship) Dock() (*models.ShipNav, error)
- func (s *Ship) Extract() (*models.Extraction, error)
- func (s *Ship) ExtractWithSurvey(survey models.Survey) (*models.Extraction, error)
- func (s *Ship) FetchCargo() (*models.Cargo, error)
- func (s *Ship) FetchCooldown() (*models.ShipCooldown, error)
- func (s *Ship) FetchNavigationStatus() (*models.ShipNav, error)
- func (s *Ship) GetMounts() (*models.MountSymbol, string, string, int, []string, models.ShipRequirements, ...)
- func (s *Ship) GetRepairPrice() (*models.Transaction, error)
- func (s *Ship) GetRouteToDestination(destination string) (*models.PathfindingRoute, error)
- func (s *Ship) GetScrapPrice() (*models.Transaction, error)
- func (s *Ship) InstallMount(mountSymbol models.MountSymbol) (*models.Agent, []models.ShipMount, *models.Cargo, *models.Transaction, error)
- func (s *Ship) Jettison(goodSymbol models.GoodSymbol, units int) (*models.Cargo, error)
- func (s *Ship) Jump(systemSymbol string) (*models.ShipNav, *models.ShipCooldown, *models.Transaction, *models.Agent, ...)
- func (s *Ship) Navigate(waypointSymbol string) (*models.FuelDetails, *models.ShipNav, []models.Event, error)
- func (s *Ship) NegotiateContract() (*models.Contract, error)
- func (s *Ship) Orbit() (*models.ShipNav, error)
- func (s *Ship) PurchaseCargo(goodSymbol models.GoodSymbol, units int) (*models.Agent, *models.Cargo, *models.Transaction, error)
- func (s *Ship) Refine(produce string) (*models.Produced, *models.Consumed, error)
- func (s *Ship) Refuel(amount int, fromCargo bool) (*models.Agent, *models.FuelDetails, *models.Transaction, error)
- func (s *Ship) RemoveMount(mountSymbol models.MountSymbol) (*models.Agent, []models.ShipMount, *models.Cargo, *models.Transaction, error)
- func (s *Ship) RepairShip() (*models.Ship, *models.Transaction, error)
- func (s *Ship) ScanSystems() (*models.ShipCooldown, []models.System, error)
- func (s *Ship) ScanWaypoints() (*models.ShipCooldown, []models.Waypoint, error)
- func (s *Ship) ScrapShip() (*models.Transaction, error)
- func (s *Ship) SellCargo(goodSymbol models.GoodSymbol, units int) (*models.Agent, *models.Cargo, *models.Transaction, error)
- func (s *Ship) SetFlightMode(flightmode models.FlightMode) error
- func (s *Ship) Siphon() (*models.Extraction, error)
- func (s *Ship) Survey() ([]models.Survey, error)
- func (s *Ship) TransferCargo(goodSymbol models.GoodSymbol, units int, shipSymbol string) (*models.Cargo, error)
- func (s *Ship) Warp(waypointSymbol string) (*models.FuelDetails, *models.ShipNav, error)
- type System
- func (s *System) FetchWaypoint(symbol string) (*models.Waypoint, error)
- func (s *System) GetConstructionSite(waypointSymbol string) (*models.ConstructionSite, error)
- func (s *System) GetJumpGate(waypointSymbol string) (*models.JumpGate, error)
- func (s *System) GetMarket(waypointSymbol string) (*models.Market, error)
- func (s *System) GetShipyard(waypointSymbol string) (*models.Shipyard, error)
- func (s *System) GetWaypointsWithTrait(trait string, waypointType string) ([]*models.Waypoint, error)
- func (s *System) ListWaypoints(trait models.WaypointTrait, waypointType models.WaypointType) ([]*models.Waypoint, *models.Meta, error)
- func (s *System) SupplyConstructionSite(shipSymbol string, waypointSymbol string, good models.GoodSymbol, quantity int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateDistanceBetweenWaypoints ¶
Calculate the distance between two waypoints
Types ¶
type Contract ¶
func (*Contract) DeliverCargo ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item represents an item in the priority queue
type PriorityQueue ¶
type PriorityQueue []*Item
PriorityQueue represents a priority queue of items
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{})
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type Ship ¶
func PurchaseShip ¶
func (*Ship) CalculateFuelRequired ¶
func (s *Ship) CalculateFuelRequired(distance float64, flightMode models.FlightMode) int
func (*Ship) CalculateTravelTime ¶
func (s *Ship) CalculateTravelTime(distance float64, flightMode models.FlightMode) int
func (*Ship) ExtractWithSurvey ¶
func (*Ship) FetchCooldown ¶
func (s *Ship) FetchCooldown() (*models.ShipCooldown, error)
func (*Ship) FetchNavigationStatus ¶
func (*Ship) GetMounts ¶
func (s *Ship) GetMounts() (*models.MountSymbol, string, string, int, []string, models.ShipRequirements, error)
func (*Ship) GetRepairPrice ¶
func (s *Ship) GetRepairPrice() (*models.Transaction, error)
func (*Ship) GetRouteToDestination ¶
func (s *Ship) GetRouteToDestination(destination string) (*models.PathfindingRoute, error)
func (*Ship) GetScrapPrice ¶
func (s *Ship) GetScrapPrice() (*models.Transaction, error)
func (*Ship) InstallMount ¶
func (*Ship) PurchaseCargo ¶
func (*Ship) Refuel ¶
func (s *Ship) Refuel(amount int, fromCargo bool) (*models.Agent, *models.FuelDetails, *models.Transaction, error)
func (*Ship) RemoveMount ¶
func (*Ship) RepairShip ¶
func (*Ship) ScanSystems ¶
func (*Ship) ScanWaypoints ¶
func (*Ship) SetFlightMode ¶
func (s *Ship) SetFlightMode(flightmode models.FlightMode) error
func (*Ship) TransferCargo ¶
type System ¶
func (*System) FetchWaypoint ¶
func (*System) GetConstructionSite ¶
func (s *System) GetConstructionSite(waypointSymbol string) (*models.ConstructionSite, error)
func (*System) GetJumpGate ¶
func (*System) GetShipyard ¶
func (*System) GetWaypointsWithTrait ¶
func (*System) ListWaypoints ¶
func (s *System) ListWaypoints(trait models.WaypointTrait, waypointType models.WaypointType) ([]*models.Waypoint, *models.Meta, error)
func (*System) SupplyConstructionSite ¶
Click to show internal directories.
Click to hide internal directories.