part

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	// contains filtered or unexported fields
}

func NewBody

func NewBody(doors int) *Body

func (*Body) Paint

func (b *Body) Paint(c color.Color)

type Chassis

type Chassis struct {
	// contains filtered or unexported fields
}

func NewChassis

func NewChassis(engine *Engine, gearbox *Gearbox, wheels WheelSet) *Chassis

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(hp int, displacement int) *Engine

type Gearbox

type Gearbox struct {
	// contains filtered or unexported fields
}

func NewGearbox

func NewGearbox(gears int, automatic bool) *Gearbox

type Rim

type Rim struct {
	// contains filtered or unexported fields
}

func NewRim

func NewRim(diameter int) Rim

type SummerTire

type SummerTire struct{}

func NewSummerTire

func NewSummerTire() SummerTire

func (SummerTire) Season

func (SummerTire) Season() string

type Tire

type Tire interface {
	Season() string
}

type Wheel

type Wheel struct {
	// contains filtered or unexported fields
}

func NewWheel

func NewWheel(rim Rim, tire Tire) Wheel

type WheelSet

type WheelSet [4]Wheel

func NewWheelSet

func NewWheelSet(fl, fr, bl, br Wheel) WheelSet

type WinterTire

type WinterTire struct{}

func NewWinterTire

func NewWinterTire() WinterTire

func (WinterTire) Season

func (WinterTire) Season() string

Jump to

Keyboard shortcuts

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