Files
JuegoSim/-o/CommandLayer/CommandManager.puml
T
2026-07-21 08:56:10 +03:00

16 lines
439 B
Plaintext

@startuml
class CommandManager {
- {static} instance : CommandManager
- commandStack : LinkedList<ICommand>
- redoStack : LinkedList<ICommand>
- maxCapacity : int = 100
- CommandManager()
+ {static} getInstance() : CommandManager
+ setMaxCapacity(capacity:int) : void
+ executeCommand(command:ICommand) : void
+ undo() : void
+ redo() : ICommand
+ clearHistory() : void
}
@enduml