Class: RPG::Tileset

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/tileset.rb

Overview

The data class for tile sets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeTileset

Returns a new instance of Tileset.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 11

def initialize
  @id = 0
  @name = ""
  @tileset_name = ""
  @autotile_names = [""] * 7
  @panorama_name = ""
  @panorama_hue = 0
  @fog_name = ""
  @fog_hue = 0
  @fog_opacity = 64
  @fog_blend_type = 0
  @fog_zoom = 200
  @fog_sx = 0
  @fog_sy = 0
  @battleback_name = ""
  @passages = Table.new(384)
  @priorities = Table.new(384)
  @terrain_tags = Table.new(384)
end

Instance Attribute Details

#autotile_namesObject

Returns the value of attribute autotile_names.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def autotile_names
  @autotile_names
end

#battleback_nameObject

Returns the value of attribute battleback_name.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def battleback_name
  @battleback_name
end

#flagsObject

Returns the value of attribute flags.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/tileset.rb', line 24

def flags
  @flags
end

#fog_blend_typeObject

Returns the value of attribute fog_blend_type.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_blend_type
  @fog_blend_type
end

#fog_hueObject

Returns the value of attribute fog_hue.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_hue
  @fog_hue
end

#fog_nameObject

Returns the value of attribute fog_name.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_name
  @fog_name
end

#fog_opacityObject

Returns the value of attribute fog_opacity.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_opacity
  @fog_opacity
end

#fog_sxObject

Returns the value of attribute fog_sx.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_sx
  @fog_sx
end

#fog_syObject

Returns the value of attribute fog_sy.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_sy
  @fog_sy
end

#fog_zoomObject

Returns the value of attribute fog_zoom.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def fog_zoom
  @fog_zoom
end

#idObject

Returns the value of attribute id.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def id
  @id
end

#modeObject

Returns the value of attribute mode.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/tileset.rb', line 24

def mode
  @mode
end

#nameObject

Returns the value of attribute name.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def name
  @name
end

#noteObject

Returns the value of attribute note.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/tileset.rb', line 24

def note
  @note
end

#panorama_hueObject

Returns the value of attribute panorama_hue.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def panorama_hue
  @panorama_hue
end

#panorama_nameObject

Returns the value of attribute panorama_name.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def panorama_name
  @panorama_name
end

#passagesObject

Returns the value of attribute passages.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def passages
  @passages
end

#prioritiesObject

Returns the value of attribute priorities.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def priorities
  @priorities
end

#terrain_tagsObject

Returns the value of attribute terrain_tags.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def terrain_tags
  @terrain_tags
end

#tileset_nameObject

Returns the value of attribute tileset_name.



35
36
37
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 35

def tileset_name
  @tileset_name
end

#tileset_namesObject

Returns the value of attribute tileset_names.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/tileset.rb', line 24

def tileset_names
  @tileset_names
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb', line 31

def to_s
  @name.to_s
end