ship

package
v0.0.0-...-16767da Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SquadTypeTactical   SquadType = 0
	SquadTypeTerminator SquadType = 1
	SquadTypeAssault    SquadType = 2
	SquadTypeDevastator SquadType = 3

	CharTypeMarine     CharacterType = 0
	CharTypeCaptain    CharacterType = 1
	CharTypeChaplain   CharacterType = 2
	CharTypeApothecary CharacterType = 3
	CharTypeTechmarine CharacterType = 4
	CharTypeLibrarian  CharacterType = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character struct {
	Name string
	Type CharacterType

	Stats
	Honours
}

type CharacterType

type CharacterType int

type DifficultyLevel

type DifficultyLevel int
const (
	DifficultyLevelMarine  DifficultyLevel = 0
	DifficultyLevelVeteran DifficultyLevel = 1
	DifficultyLevelHero    DifficultyLevel = 2
	DifficultyLevelMighty  DifficultyLevel = 3
)

type Honours

type Honours struct {
	Marksman       bool
	CruxTerminatus bool
	PuritySeal     bool
	ImperialLaurel bool
}

type Ship

type Ship struct {
	Difficulty   DifficultyLevel
	NextScenario string

	Squads      []*Squad
	Captain     *Character
	Chaplain    *Character
	Apothecary  *Character
	Techmarines [2]*Character
	Librarians  [4]*Character
}

Ship encapsulates campaign state, including current location in the campaign, marines and their stats, supplies, etc.

func New

func New() *Ship

func (*Ship) Reset

func (s *Ship) Reset()

type Squad

type Squad struct {
	Type SquadType

	Characters []*Character
}

type SquadType

type SquadType int

type Stats

type Stats struct {
	ActionPoints   int
	Health         int
	Armour         int
	BallisticSkill int
	WeaponSkill    int
	Strength       int
	Toughness      int
	Initiative     int
	Attacks        int
	Leadership     int

	MissionCount int
	KillCount    int

	Experience int
}

Jump to

Keyboard shortcuts

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