levels

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 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 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

Jump to

Keyboard shortcuts

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