Class: RPG::Tileset

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTileset

Returns a new instance of Tileset.



1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
# File 'lib/R3EXS/RGSS3.rb', line 1169

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.



1185
1186
1187
# File 'lib/R3EXS/RGSS3.rb', line 1185

def flags
  @flags
end

#idObject

Returns the value of attribute id.



1181
1182
1183
# File 'lib/R3EXS/RGSS3.rb', line 1181

def id
  @id
end

#modeObject

Returns the value of attribute mode.



1182
1183
1184
# File 'lib/R3EXS/RGSS3.rb', line 1182

def mode
  @mode
end

#nameObject

Returns the value of attribute name.



1183
1184
1185
# File 'lib/R3EXS/RGSS3.rb', line 1183

def name
  @name
end

#noteObject

Returns the value of attribute note.



1186
1187
1188
# File 'lib/R3EXS/RGSS3.rb', line 1186

def note
  @note
end

#tileset_namesObject

Returns the value of attribute tileset_names.



1184
1185
1186
# File 'lib/R3EXS/RGSS3.rb', line 1184

def tileset_names
  @tileset_names
end