Auteur: Yukihiro matsumoto
#============================================
# ‘ Game_Actors
#--------------------------------------------
# @AN^[Μzρπ΅€NXΕ·B±ΜNXΜCX^XΝ $game_actors Ε
# QΖ³κά·B
#============================================
class Game_Actors
#------------------------------------------
# IuWFNgϊ»
#------------------------------------------
def initialize
@data = []
end
#------------------------------------------
# AN^[ΜζΎ
# actor_id : AN^[ ID
#------------------------------------------
def [](actor_id)
if actor_id > 999 or $data_actors[actor_id] == nil
return nil
end
if @data[actor_id] == nil
@data[actor_id] = Game_Actor.new(actor_id)
end
return @data[actor_id]
end
end |
|