states

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

拠点でのコマンド選択画面

ゲームの導入テキストを表示するステート

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ItemGetEvent1 added in v1.66.0

func ItemGetEvent1() []es.State

汎用アイテム入手イベント

func RaidEvent1 added in v1.66.0

func RaidEvent1() []es.State

汎用戦闘イベント開始

Types

type BattleState added in v1.52.0

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

func (*BattleState) Draw added in v1.52.0

func (st *BattleState) Draw(world w.World, screen *ebiten.Image)

func (*BattleState) OnPause added in v1.52.0

func (st *BattleState) OnPause(world w.World)

func (*BattleState) OnResume added in v1.52.0

func (st *BattleState) OnResume(world w.World)

func (*BattleState) OnStart added in v1.52.0

func (st *BattleState) OnStart(world w.World)

func (*BattleState) OnStop added in v1.52.0

func (st *BattleState) OnStop(world w.World)

func (BattleState) String added in v1.52.0

func (st BattleState) String() string

func (*BattleState) Update added in v1.52.0

func (st *BattleState) Update(world w.World) states.Transition

type CraftMenuState

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

func (*CraftMenuState) Draw

func (st *CraftMenuState) Draw(world w.World, screen *ebiten.Image)

func (*CraftMenuState) OnPause

func (st *CraftMenuState) OnPause(world w.World)

func (*CraftMenuState) OnResume

func (st *CraftMenuState) OnResume(world w.World)

func (*CraftMenuState) OnStart

func (st *CraftMenuState) OnStart(world w.World)

func (*CraftMenuState) OnStop

func (st *CraftMenuState) OnStop(world w.World)

func (CraftMenuState) String added in v1.23.0

func (st CraftMenuState) String() string

func (*CraftMenuState) Update

func (st *CraftMenuState) Update(world w.World) states.Transition

type DebugMenuState

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

func (*DebugMenuState) Draw

func (st *DebugMenuState) Draw(world w.World, screen *ebiten.Image)

func (*DebugMenuState) OnPause

func (st *DebugMenuState) OnPause(world w.World)

func (*DebugMenuState) OnResume

func (st *DebugMenuState) OnResume(world w.World)

func (*DebugMenuState) OnStart

func (st *DebugMenuState) OnStart(world w.World)

func (*DebugMenuState) OnStop

func (st *DebugMenuState) OnStop(world w.World)

func (DebugMenuState) String added in v1.23.0

func (st DebugMenuState) String() string

func (*DebugMenuState) Update

func (st *DebugMenuState) Update(world w.World) states.Transition

type DungeonMenuState added in v1.36.0

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

func (*DungeonMenuState) Draw added in v1.36.0

func (st *DungeonMenuState) Draw(world w.World, screen *ebiten.Image)

func (*DungeonMenuState) OnPause added in v1.36.0

func (st *DungeonMenuState) OnPause(world w.World)

func (*DungeonMenuState) OnResume added in v1.36.0

func (st *DungeonMenuState) OnResume(world w.World)

func (*DungeonMenuState) OnStart added in v1.36.0

func (st *DungeonMenuState) OnStart(world w.World)

func (*DungeonMenuState) OnStop added in v1.36.0

func (st *DungeonMenuState) OnStop(world w.World)

func (DungeonMenuState) String added in v1.36.0

func (st DungeonMenuState) String() string

func (*DungeonMenuState) Update added in v1.36.0

func (st *DungeonMenuState) Update(world w.World) states.Transition

type DungeonSelectState

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

func (*DungeonSelectState) Draw

func (st *DungeonSelectState) Draw(world w.World, screen *ebiten.Image)

func (*DungeonSelectState) OnPause

func (st *DungeonSelectState) OnPause(world w.World)

func (*DungeonSelectState) OnResume

func (st *DungeonSelectState) OnResume(world w.World)

func (*DungeonSelectState) OnStart

func (st *DungeonSelectState) OnStart(world w.World)

func (*DungeonSelectState) OnStop

func (st *DungeonSelectState) OnStop(world w.World)

func (DungeonSelectState) String added in v1.23.0

func (st DungeonSelectState) String() string

func (*DungeonSelectState) Update

func (st *DungeonSelectState) Update(world w.World) states.Transition

type DungeonState added in v1.33.0

type DungeonState struct {
	Depth int
}

func (*DungeonState) Draw added in v1.33.0

func (st *DungeonState) Draw(world w.World, screen *ebiten.Image)

func (*DungeonState) OnPause added in v1.33.0

func (st *DungeonState) OnPause(world w.World)

func (*DungeonState) OnResume added in v1.33.0

func (st *DungeonState) OnResume(world w.World)

func (*DungeonState) OnStart added in v1.33.0

func (st *DungeonState) OnStart(world w.World)

func (*DungeonState) OnStop added in v1.33.0

func (st *DungeonState) OnStop(world w.World)

func (DungeonState) String added in v1.33.0

func (st DungeonState) String() string

func (*DungeonState) Update added in v1.33.0

func (st *DungeonState) Update(world w.World) states.Transition

type EquipMenuState added in v1.14.0

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

func (*EquipMenuState) Draw added in v1.14.0

func (st *EquipMenuState) Draw(world w.World, screen *ebiten.Image)

func (*EquipMenuState) OnPause added in v1.14.0

func (st *EquipMenuState) OnPause(world w.World)

func (*EquipMenuState) OnResume added in v1.14.0

func (st *EquipMenuState) OnResume(world w.World)

func (*EquipMenuState) OnStart added in v1.14.0

func (st *EquipMenuState) OnStart(world w.World)

func (*EquipMenuState) OnStop added in v1.14.0

func (st *EquipMenuState) OnStop(world w.World)

func (EquipMenuState) String added in v1.23.0

func (st EquipMenuState) String() string

func (*EquipMenuState) Update added in v1.14.0

func (st *EquipMenuState) Update(world w.World) states.Transition

type ExecState added in v1.66.0

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

ステート管理に乗っかりつつ任意のコマンドを実行するためのダミーステート

func (*ExecState) Draw added in v1.66.0

func (st *ExecState) Draw(world w.World, screen *ebiten.Image)

func (*ExecState) OnPause added in v1.66.0

func (st *ExecState) OnPause(world w.World)

func (*ExecState) OnResume added in v1.66.0

func (st *ExecState) OnResume(world w.World)

func (*ExecState) OnStart added in v1.66.0

func (st *ExecState) OnStart(world w.World)

state pushされたときはpush時にまとめてインスタンスを作成し、スタックトップに回ってきたときに使う。トップに回ってきたときに初期化しているわけではない。つまり、OnStartにf(world)を書くと複数stateをpushしたときに即実行されてしまう。そうではなく、スタックトップに来たときに実行してほしい。 ほかのstateではswitchを使っていることが多い。switchではstate stackを再作成して1つだけpushする。なので、stateインスタンス生成とスタックトップに来たときの時差がないため問題が起きない。

func (*ExecState) OnStop added in v1.66.0

func (st *ExecState) OnStop(world w.World)

func (ExecState) String added in v1.66.0

func (st ExecState) String() string

func (*ExecState) Update added in v1.66.0

func (st *ExecState) Update(world w.World) states.Transition

type GameOverState added in v1.62.0

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

func (*GameOverState) Draw added in v1.62.0

func (st *GameOverState) Draw(world w.World, screen *ebiten.Image)

func (*GameOverState) OnPause added in v1.62.0

func (st *GameOverState) OnPause(world w.World)

func (*GameOverState) OnResume added in v1.62.0

func (st *GameOverState) OnResume(world w.World)

func (*GameOverState) OnStart added in v1.62.0

func (st *GameOverState) OnStart(world w.World)

func (*GameOverState) OnStop added in v1.62.0

func (st *GameOverState) OnStop(world w.World)

func (GameOverState) String added in v1.62.0

func (st GameOverState) String() string

func (*GameOverState) Update added in v1.62.0

func (st *GameOverState) Update(world w.World) states.Transition

type HomeMenuState

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

func (*HomeMenuState) Draw

func (st *HomeMenuState) Draw(world w.World, screen *ebiten.Image)

func (*HomeMenuState) OnPause

func (st *HomeMenuState) OnPause(world w.World)

func (*HomeMenuState) OnResume

func (st *HomeMenuState) OnResume(world w.World)

func (*HomeMenuState) OnStart

func (st *HomeMenuState) OnStart(world w.World)

func (*HomeMenuState) OnStop

func (st *HomeMenuState) OnStop(world w.World)

func (HomeMenuState) String added in v1.23.0

func (st HomeMenuState) String() string

func (*HomeMenuState) Update

func (st *HomeMenuState) Update(world w.World) states.Transition

type IntroState

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

func (*IntroState) Draw

func (st *IntroState) Draw(world w.World, screen *ebiten.Image)

func (*IntroState) OnPause

func (st *IntroState) OnPause(world w.World)

func (*IntroState) OnResume

func (st *IntroState) OnResume(world w.World)

func (*IntroState) OnStart

func (st *IntroState) OnStart(world w.World)

func (*IntroState) OnStop

func (st *IntroState) OnStop(world w.World)

func (IntroState) String added in v1.23.0

func (st IntroState) String() string

func (*IntroState) Update

func (st *IntroState) Update(world w.World) states.Transition

type InventoryMenuState

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

func (*InventoryMenuState) Draw

func (st *InventoryMenuState) Draw(world w.World, screen *ebiten.Image)

func (*InventoryMenuState) OnPause

func (st *InventoryMenuState) OnPause(world w.World)

func (*InventoryMenuState) OnResume

func (st *InventoryMenuState) OnResume(world w.World)

func (*InventoryMenuState) OnStart

func (st *InventoryMenuState) OnStart(world w.World)

func (*InventoryMenuState) OnStop

func (st *InventoryMenuState) OnStop(world w.World)

func (InventoryMenuState) String added in v1.23.0

func (st InventoryMenuState) String() string

func (*InventoryMenuState) Update

func (st *InventoryMenuState) Update(world w.World) states.Transition

type ItemCategoryType added in v1.23.0

type ItemCategoryType string
var (
	// 道具
	ItemCategoryTypeItem ItemCategoryType = "ITEM"
	// 手札
	ItemCategoryTypeCard ItemCategoryType = "CARD"
	// 装備
	ItemCategoryTypeWearable ItemCategoryType = "WEARABLE"
	// 素材
	ItemCategoryTypeMaterial ItemCategoryType = "MATERIAL"
)
type MainMenuState struct {
	// contains filtered or unexported fields
}
func (st *MainMenuState) Draw(world w.World, screen *ebiten.Image)
func (st *MainMenuState) OnPause(world w.World)
func (st *MainMenuState) OnResume(world w.World)
func (st *MainMenuState) OnStart(world w.World)
func (st *MainMenuState) OnStop(world w.World)
func (st MainMenuState) String() string
func (st *MainMenuState) Update(world w.World) states.Transition

type MessageState added in v1.66.0

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

func (*MessageState) Draw added in v1.66.0

func (st *MessageState) Draw(world w.World, screen *ebiten.Image)

func (*MessageState) OnPause added in v1.66.0

func (st *MessageState) OnPause(world w.World)

func (*MessageState) OnResume added in v1.66.0

func (st *MessageState) OnResume(world w.World)

func (*MessageState) OnStart added in v1.66.0

func (st *MessageState) OnStart(world w.World)

func (*MessageState) OnStop added in v1.66.0

func (st *MessageState) OnStop(world w.World)

func (MessageState) String added in v1.66.0

func (st MessageState) String() string

func (*MessageState) Update added in v1.66.0

func (st *MessageState) Update(world w.World) states.Transition

Jump to

Keyboard shortcuts

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