... | ... | @@ -213,52 +213,13 @@ class House { |
|
|
+ checkCollision(player: Player): boolean
|
|
|
}
|
|
|
|
|
|
class SoundManager {
|
|
|
+ playSound(soundType: SoundType)
|
|
|
+ playMusic(musicType: MusicType)
|
|
|
}
|
|
|
|
|
|
class GamepadController {
|
|
|
+ connectController()
|
|
|
+ handleInput(input: GamepadInput)
|
|
|
}
|
|
|
|
|
|
class SaveManager {
|
|
|
+ saveGame(game: Game)
|
|
|
+ loadGame(game: Game)
|
|
|
}
|
|
|
|
|
|
enum SoundType {
|
|
|
Footstep
|
|
|
Grass
|
|
|
Dirt
|
|
|
House
|
|
|
Attack
|
|
|
KO
|
|
|
Damage
|
|
|
NewPokemon
|
|
|
Dialogue
|
|
|
}
|
|
|
|
|
|
enum MusicType {
|
|
|
Ambience
|
|
|
Battle
|
|
|
House
|
|
|
Boss
|
|
|
}
|
|
|
|
|
|
enum GamepadInput {
|
|
|
Move
|
|
|
Menu
|
|
|
SelectAttack
|
|
|
}
|
|
|
|
|
|
Game <-- Player
|
|
|
Game <-- Battle
|
|
|
Game <-- GUI
|
|
|
Game <-- Model
|
|
|
Model <-- Data
|
|
|
Model <-- SaveManager
|
|
|
Player <-- Pokemon
|
|
|
Boss <-- Pokemon
|
|
|
Battle <-- Boss
|
... | ... | |