Class: Game_Pictures

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

Overview

** Game_Pictures


This is a wrapper for a picture array. This class is used within the

Game_Screen class. Map screen pictures and battle screen pictures are handled separately.

Instance Method Summary (collapse)

Constructor Details

- (Game_Pictures) initialize


  • Object Initialization




13
14
15
# File 'Game_Pictures.rb', line 13

def initialize
  @data = []
end

Instance Method Details

- (Object) [](number)


  • Get Picture




19
20
21
# File 'Game_Pictures.rb', line 19

def [](number)
  @data[number] ||= Game_Picture.new(number)
end

- (Object) each


  • Iterator




25
26
27
# File 'Game_Pictures.rb', line 25

def each
  @data.compact.each {|picture| yield picture } if block_given?
end