Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level struct {
Number int
Name string
Description string
Objective string
UnlockCmds []string
Setup func(vfs *filesystem.VirtualFS, game *entity.Game) error
WinCondition func(game *entity.Game) bool
}
Level representa un nivel del juego
type LevelManager ¶
type LevelManager struct {
// contains filtered or unexported fields
}
LevelManager gestiona los niveles del juego
func NewLevelManager ¶
func NewLevelManager(vfs *filesystem.VirtualFS, game *entity.Game) *LevelManager
NewLevelManager crea un nuevo gestor de niveles
func (*LevelManager) AdvanceLevel ¶
func (lm *LevelManager) AdvanceLevel() bool
AdvanceLevel avanza al siguiente nivel
func (*LevelManager) CheckWinCondition ¶
func (lm *LevelManager) CheckWinCondition() bool
CheckWinCondition verifica si se cumple la condición de victoria del nivel actual
func (*LevelManager) GetCurrentLevel ¶
func (lm *LevelManager) GetCurrentLevel() *Level
GetCurrentLevel devuelve el nivel actual
func (*LevelManager) GetLevelName ¶
func (lm *LevelManager) GetLevelName(levelNum int) string
GetLevelName obtiene el nombre de un nivel por su número
func (*LevelManager) StartLevel ¶
func (lm *LevelManager) StartLevel(levelNum int) error
StartLevel inicializa el nivel especificado
Click to show internal directories.
Click to hide internal directories.