Class: Game_Troop
- Defined in:
- scripts/00600 Script_RMXP/00600 Game_Battler.rb
Overview
Class that describe a troop of enemies
Instance Method Summary collapse
-
#enemies ⇒ Array<Game_Enemy>
Returns the list of enemies.
-
#initialize ⇒ Game_Troop
constructor
Default initializer.
-
#setup(troop_id)
Setup the troop with a troop from the database.
Constructor Details
#initialize ⇒ Game_Troop
Default initializer.
144 145 146 147 |
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 144 def initialize # エネミーの配列を作成 @enemies = [] end |
Instance Method Details
#enemies ⇒ Array<Game_Enemy>
Returns the list of enemies
151 152 153 |
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 151 def enemies return @enemies end |
#setup(troop_id)
Setup the troop with a troop from the database
157 158 159 |
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 157 def setup(troop_id) @enemies = [] end |