Documentation
¶
Index ¶
- Constants
- type Sector
- func (sector *Sector) AddNewShip(shipName string) string
- func (sector *Sector) ChangeSector(travelingShip ship.Ship, destinationSectorName string) bool
- func (sector *Sector) GetConnectedSectorByName(sectorName string) *Sector
- func (sector *Sector) GetConnectedSectors() []string
- func (sector *Sector) GetShipByName(shipName string) *ship.Ship
- func (sector *Sector) IsShipNameAvailable(shipName string) bool
- func (sector *Sector) ScanSector() []string
- func (sector *Sector) ShootWeapons(attacker ship.Ship, victim *ship.Ship)
- type Universe
Constants ¶
View Source
const TotalSectors = 9
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sector ¶
type Sector struct {
// contains filtered or unexported fields
}
func (*Sector) AddNewShip ¶
func (*Sector) ChangeSector ¶
func (*Sector) GetConnectedSectorByName ¶
func (*Sector) GetConnectedSectors ¶
func (*Sector) IsShipNameAvailable ¶
func (*Sector) ScanSector ¶
type Universe ¶
type Universe struct {
// contains filtered or unexported fields
}
func CreateUniverse ¶
func CreateUniverse() *Universe
func (*Universe) CreateNewShip ¶
func (*Universe) GetSectorByName ¶
Click to show internal directories.
Click to hide internal directories.