vehicle

package
v0.0.0-...-40a4415 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CarEfficiency = 5.0
View Source
const CarSpeed = 10.0
View Source
const DroneEfficiency = 30.0
View Source
const DroneRange = 150.0
View Source
const DroneSpeed = 25.0
View Source
const DroneStorage = 10.0

Variables

This section is empty.

Functions

This section is empty.

Types

type ICar

type ICar interface {
	ActualPoint() gps.Point
	Drones() []IDrone
	Efficiency() float64
	Move(destination gps.Point)
	Name() string
	NewDrone(name string)
	Speed() float64
	Support(...gps.Point) bool
}

func NewCar

func NewCar(name string, startingPoint gps.Point) ICar

type IDrone

type IDrone interface {
	ActualPoint() gps.Point
	CanReach(...gps.Point) bool
	Efficiency() float64
	IsFlying() bool
	Land(destination gps.Point)
	Move(destination gps.Point)
	Name() string
	Speed() float64
	Support(...gps.Point) bool
	TakeOff()
}

Directories

Path Synopsis
Package mock_vehicle is a generated GoMock package.
Package mock_vehicle is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL