Documentation ¶
Index ¶
- type RouteItem
- type State
- func (s *State) Agent() *api.Agent
- func (s *State) AllConstructions(ctx context.Context, sys s10s.SystemSymbol) ([]*api.Construction, error)
- func (s *State) AllConstructionsStatic(systemSymbol string) ([]*api.Construction, error)
- func (s *State) AllJumpGates(ctx context.Context, sys s10s.SystemSymbol, incUnderConstruction bool) ([]*api.JumpGate, error)
- func (s *State) AllJumpGatesStatic(ctx context.Context, sys s10s.SystemSymbol, incUnderConstruction bool) ([]*api.JumpGate, error)
- func (s *State) AllMarkets(ctx context.Context, systemSymbol s10s.SystemSymbol) ([]*api.Market, error)
- func (s *State) AllMarketsStatic(ctx context.Context, systemSymbol s10s.SystemSymbol) ([]*api.Market, error)
- func (s *State) AllShipyards(ctx context.Context, sys s10s.SystemSymbol) ([]*api.Shipyard, error)
- func (s *State) AllShipyardsStatic(ctx context.Context, sys s10s.SystemSymbol) ([]*api.Shipyard, error)
- func (state *State) AllSystemsStatic(ctx context.Context) (<-chan *api.System, error)
- func (s *State) AllWaypoints(ctx context.Context, systemSymbol s10s.SystemSymbol) ([]*api.Waypoint, error)
- func (s *State) AllWaypointsStatic(ctx context.Context, sys s10s.SystemSymbol) ([]*api.Waypoint, error)
- func (s *State) CacheAgeSystem(ctx context.Context, symbol s10s.SystemSymbol) time.Time
- func (s *State) CalcInterstellarJumpRoute(ctx context.Context, from, to s10s.WaypointSymbol) ([]string, error)
- func (s *State) CalcInterstellarRoute(ctx context.Context, fuelCapa int, from, to s10s.WaypointSymbol) ([]string, error)
- func (s *State) CalcNavRoute(ctx context.Context, ship *api.Ship, from, to s10s.WaypointSymbol) ([]RouteItem, error)
- func (s *State) CalcTravelDistance(ctx context.Context, ship *api.Ship, fromSymbol, toSymbol s10s.WaypointSymbol) (int, error)
- func (s *State) CalcWarpRoute(ctx context.Context, fuelCapa int, from, to s10s.WaypointSymbol) ([]string, error)
- func (s *State) Dump(ctx context.Context, fName string) (err error)
- func (state *State) FindInterstellarGood(ctx context.Context, good api.TradeSymbol) (<-chan *api.Market, error)
- func (s *State) FindInterstellarShipyards(ctx context.Context) (<-chan *api.Shipyard, error)
- func (s *State) FindWaypointBySymbol(ctx context.Context, wp s10s.WaypointSymbol) *api.Waypoint
- func (s *State) GetJumpGate(ctx context.Context, wp *api.Waypoint) (*api.JumpGate, error)
- func (s *State) GetMarketStatic(ctx context.Context, wpSymbol s10s.WaypointSymbol) (*api.Market, error)
- func (s *State) GetMyAgent(ctx context.Context) (*api.Agent, error)
- func (s *State) GetShipyardStatic(ctx context.Context, wpSymbol s10s.WaypointSymbol) (*api.Shipyard, error)
- func (s *State) GetSystem(ctx context.Context, sysSym s10s.SystemSymbol) (*api.System, error)
- func (s *State) HasSystemCached(ctx context.Context, sysSymbol s10s.SystemSymbol) bool
- func (s *State) HasWaypointsCached(ctx context.Context, sysSymbol s10s.SystemSymbol) bool
- func (s *State) PersistCache(ctx context.Context) error
- func (s *State) Ships() []*api.Ship
- func (s *State) SortByDist(ctx context.Context, ship *api.Ship, wps []*api.Waypoint) (func(a, b *api.Waypoint) int, error)
- func (s *State) StellarConstructionsStatic() ([]*api.Construction, error)
- func (s *State) StellarJumpGatesStatic() ([]*api.JumpGate, error)
- func (s *State) SubscribedEvents() map[string]interface{}
- type Vert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) AllConstructions ¶
func (s *State) AllConstructions(ctx context.Context, sys s10s.SystemSymbol) ([]*api.Construction, error)
func (*State) AllConstructionsStatic ¶
func (s *State) AllConstructionsStatic(systemSymbol string) ([]*api.Construction, error)
func (*State) AllJumpGates ¶
func (s *State) AllJumpGates(ctx context.Context, sys s10s.SystemSymbol, incUnderConstruction bool) ([]*api.JumpGate, error)
AllJumpGates returns the /jump-gate info for all jumpGates in the system Uncharted JumpGates are NOT returned
func (*State) AllJumpGatesStatic ¶
func (s *State) AllJumpGatesStatic(ctx context.Context, sys s10s.SystemSymbol, incUnderConstruction bool) ([]*api.JumpGate, error)
AllJumpGatesStatic returns the /jump-gate info for all jumpGates currently on disk Uncharted JumpGates are NOT returned
func (*State) AllMarkets ¶
func (*State) AllMarketsStatic ¶
func (*State) AllShipyards ¶
func (*State) AllShipyardsStatic ¶
func (*State) AllSystemsStatic ¶
AllSystemsStatic returns a channel with all systems currently on disk
func (*State) AllWaypoints ¶
func (*State) AllWaypointsStatic ¶
func (*State) CacheAgeSystem ¶
func (*State) CalcInterstellarJumpRoute ¶
func (*State) CalcInterstellarRoute ¶
func (*State) CalcNavRoute ¶
func (*State) CalcTravelDistance ¶
func (*State) CalcWarpRoute ¶
func (*State) FindInterstellarGood ¶
func (*State) FindInterstellarShipyards ¶
func (*State) FindWaypointBySymbol ¶
func (*State) GetJumpGate ¶
func (*State) GetMarketStatic ¶
func (*State) GetShipyardStatic ¶
func (*State) HasSystemCached ¶
func (*State) HasWaypointsCached ¶
func (*State) SortByDist ¶
func (*State) StellarConstructionsStatic ¶
func (s *State) StellarConstructionsStatic() ([]*api.Construction, error)
func (*State) StellarJumpGatesStatic ¶
func (*State) SubscribedEvents ¶
Click to show internal directories.
Click to hide internal directories.