... | @@ -119,6 +119,13 @@ class Player { |
... | @@ -119,6 +119,13 @@ class Player { |
|
+ removePokemon(pokemon: Pokemon): void
|
|
+ removePokemon(pokemon: Pokemon): void
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class Boss {
|
|
|
|
- name: String
|
|
|
|
- team: List<Pokemon>
|
|
|
|
+ Boss(name: String)
|
|
|
|
+ startBattle(player: Player): void
|
|
|
|
}
|
|
|
|
|
|
class Pokemon {
|
|
class Pokemon {
|
|
- itsName: String
|
|
- itsName: String
|
|
- itsType: PKTYPE
|
|
- itsType: PKTYPE
|
... | @@ -200,14 +207,25 @@ class BattleHUD { |
... | @@ -200,14 +207,25 @@ class BattleHUD { |
|
+ chooseOption(option: Move)
|
|
+ chooseOption(option: Move)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class House {
|
|
|
|
- objects: List<Object>
|
|
|
|
+ enterHouse()
|
|
|
|
+ exitHouse()
|
|
|
|
+ checkCollision(player: Player): boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Game --> Screen
|
|
Game --> Screen
|
|
Game --> Battle
|
|
Game --> Battle
|
|
Game --> Model
|
|
|
|
Game --> Map
|
|
Game --> Map
|
|
Game --> GUI
|
|
Game --> GUI
|
|
|
|
Game --> Model
|
|
Model --> Data
|
|
Model --> Data
|
|
Player --> Pokemon
|
|
Player --> Pokemon
|
|
|
|
Boss --> Pokemon
|
|
Battle --> Player
|
|
Battle --> Player
|
|
|
|
Battle --> Boss
|
|
Battle --> Pokemon
|
|
Battle --> Pokemon
|
|
Pokemon --> PKTYPE
|
|
Pokemon --> PKTYPE
|
|
Pokemon --> Move
|
|
Pokemon --> Move
|
... | @@ -217,4 +235,6 @@ Map --> Screen |
... | @@ -217,4 +235,6 @@ Map --> Screen |
|
Screen --> GUI
|
|
Screen --> GUI
|
|
Screen --> BattleHUD
|
|
Screen --> BattleHUD
|
|
Battle --> Move
|
|
Battle --> Move
|
|
|
|
BattleHUD --> Battle
|
|
|
|
Map --> House
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |