Class: RPG::Tileset

Inherits:
Object
  • Object
show all
Defined in:
lib/rgss3/rpg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTileset

Returns a new instance of Tileset.



106
107
108
109
110
111
112
113
114
115
116
# File 'lib/rgss3/rpg.rb', line 106

def initialize
  @id = 0
  @mode = 1
  @name = ''
  @tileset_names = Array.new(9).collect{''}
  @flags = Table.new(8192)
  @flags[0] = 0x0010
  (2048..2815).each {|i| @flags[i] = 0x000F}
  (4352..8191).each {|i| @flags[i] = 0x000F}
  @note = ''
end

Instance Attribute Details

#flagsObject

Returns the value of attribute flags.



121
122
123
# File 'lib/rgss3/rpg.rb', line 121

def flags
  @flags
end

#idObject

Returns the value of attribute id.



117
118
119
# File 'lib/rgss3/rpg.rb', line 117

def id
  @id
end

#modeObject

Returns the value of attribute mode.



118
119
120
# File 'lib/rgss3/rpg.rb', line 118

def mode
  @mode
end

#nameObject

Returns the value of attribute name.



119
120
121
# File 'lib/rgss3/rpg.rb', line 119

def name
  @name
end

#noteObject

Returns the value of attribute note.



122
123
124
# File 'lib/rgss3/rpg.rb', line 122

def note
  @note
end

#tileset_namesObject

Returns the value of attribute tileset_names.



120
121
122
# File 'lib/rgss3/rpg.rb', line 120

def tileset_names
  @tileset_names
end