interfaces

package
v0.0.0-...-2995887 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiceRollType

type DiceRollType struct {
	Dice      int
	Target    int
	AddToDice int
}

type DiceRoller

type DiceRoller interface {
	PlaySound()
	Roll(msg string, diceRollType DiceRollType, onRoll func(die int) int) (int, []int)
	GetUIPanel(dice []int) *ebiten.Image
}

type Draw

type Draw interface {
	DrawImage(img *ebiten.Image, options *ebiten.DrawImageOptions)
}

type Drawer

type Drawer struct {
	*ebiten.Image
}

type Entity

type Entity interface {
	GetLocation() Location
	SetLocation(location Location)
	GetEntityType() EntityType
	GetToken() *ebiten.Image
	GetID() string
	GetPlayerIndex() int
	SetTargetRange(location Location)
	GetTargetRange() Location
}

type EntityType

type EntityType int64
const (
	UnitEntityType EntityType = 0
)

type GamePhase

type GamePhase string
const (
	CommandPhase     GamePhase = "Command Phase"
	MovementPhase    GamePhase = "Movement Phase"
	ReinformentPhase GamePhase = "Reinforment Phase"
	AircraftPhase    GamePhase = "Aircraft Phase"
	PsychicPhase     GamePhase = "Psychic Phase"
	ShootingPhase    GamePhase = "ShootingPhase"
	ChargePhase      GamePhase = "Charge Phase"
	FightPhase       GamePhase = "Fight Phase"
	MoralePhase      GamePhase = "Morale Phase"
	EndPhase         GamePhase = "End Phase"
	GameOverPhase    GamePhase = "Game Over Phase"
)

type IWeaponAbility

type IWeaponAbility interface {
	SetArmorPiercing(value int)
	GetWeaponAbilities() []string
}

type Location

type Location struct {
	X int
	Y int
}

func (Location) Subtract

func (re Location) Subtract(l Location) Location

type PhaseExecute

type PhaseExecute interface {
	Start()
	GetName() (GamePhase, PhaseStep)
}

type PhaseStep

type PhaseStep string
const (
	// not all phases have steps
	Nil PhaseStep = "Nil"

	//shooting
	ShootingPhaseAttack    PhaseStep = "ShootingPhaseAttack"
	ShootingPhaseTargeting PhaseStep = "ShootingPhaseTargeting"
	ShootingPhaseWeapons   PhaseStep = "ShootingPhaseWeapons"
)

type PhaseStepper

type PhaseStepper interface {
	GetPhase() GamePhase
}

type Rectangle

type Rectangle struct {
	X      int
	Y      int
	Width  int
	Height int
}

type WeaponAbility

type WeaponAbility interface {
	GetType() string
	GetPhase() WeaponAbilityPhase
	Apply(die int, weapon IWeaponAbility)
}

type WeaponAbilityList

type WeaponAbilityList interface {
	Init()
	ApplyWeaponAbilities(phase WeaponAbilityPhase, die int, weapon IWeaponAbility)
}

type WeaponAbilityPhase

type WeaponAbilityPhase string
const (
	WeaponAbilityPhaseWounds WeaponAbilityPhase = "Wounds"
)

Jump to

Keyboard shortcuts

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