Class: Game_Actors

Inherits:
Object
  • Object
show all
Defined in:
Game_Actors.rb

Overview

** Game_Actors


This is a wrapper for an actor array. Instances of this class are referenced

by $game_actors.

Instance Method Summary (collapse)

Constructor Details

- (Game_Actors) initialize


  • Object Initialization




12
13
14
# File 'Game_Actors.rb', line 12

def initialize
  @data = []
end

Instance Method Details

- (Object) [](actor_id)


  • Get Actor




18
19
20
21
# File 'Game_Actors.rb', line 18

def [](actor_id)
  return nil unless $data_actors[actor_id]
  @data[actor_id] ||= Game_Actor.new(actor_id)
end