Class: Game_Troop

Inherits:
Object show all
Defined in:
scripts/00600 Script_RMXP/00600 Game_Battler.rb

Overview

Class that describe a troop of enemies

Instance Method Summary collapse

Constructor Details

#initializeGame_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

#enemiesArray<Game_Enemy>

Returns the list of enemies

Returns:



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

Parameters:

  • troop_id (Integer)

    the id of the troop in the database



157
158
159
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 157

def setup(troop_id)
  @enemies = []
end