Class: GameData::WorldMap
- Extended by:
- DataSource
- Defined in:
- scripts/00800 GameData/00100 Serializable/00950 WorldMap.rb
Overview
Data structure of world maps
Constant Summary
Constants included from DataSource
Instance Attribute Summary collapse
-
#data ⇒ Table, Array<WorldMapObject>
Informations on the map.
-
#image ⇒ String
Filename of the image used to display the world map.
-
#name_file_id ⇒ Integer, ...
Wolrd map name file id.
-
#name_id ⇒ Integer
World map name text id.
Attributes inherited from Base
Class Method Summary collapse
-
.data_filename
Name of the file containing the data.
-
.each_id(&block)
Run the given block on each worldmap id.
-
.get(id) ⇒ WorldMap
Return a WorldMap.
-
.worldmap_image_filename(filename) ⇒ String
Give the appropriate filename for the worldmap image in Graphics/interface.
-
.zone_list(id) ⇒ Array<Integer>
Get the zones id of this worldmap.
Instance Method Summary collapse
-
#initialize(img, name_id, name_file_id) ⇒ WorldMap
constructor
Create a new GameData::WorldMap.
-
#name ⇒ String
Get the name of the worldmap.
-
#zone_list_from_data ⇒ Array<Integer>
Gather the zone list from data.
Methods included from DataSource
[], all, convert_to_symbols, db_symbol, get_id, id_valid?, load
Constructor Details
#initialize(img, name_id, name_file_id) ⇒ WorldMap
Create a new GameData::WorldMap
Instance Attribute Details
#data ⇒ Table, Array<WorldMapObject>
Informations on the map
#image ⇒ String
Filename of the image used to display the world map
#name_file_id ⇒ Integer, ...
Wolrd map name file id
#name_id ⇒ Integer
World map name text id
Class Method Details
.data_filename
Name of the file containing the data
.each_id(&block)
Run the given block on each worldmap id
.get(id) ⇒ WorldMap
Return a WorldMap
.worldmap_image_filename(filename) ⇒ String
Give the appropriate filename for the worldmap image in Graphics/interface
.zone_list(id) ⇒ Array<Integer>
Get the zones id of this worldmap