Class: GameData::WorldMap

Inherits:
Base show all
Extended by:
DataSource
Defined in:
scripts/00800 GameData/00100 Serializable/00950 WorldMap.rb

Overview

Data structure of world maps

Author:

  • Leikt, Nuri Yuri

Constant Summary

Constants included from DataSource

DataSource::SOURCES

Instance Attribute Summary collapse

Attributes inherited from Base

#db_symbol, #id

Class Method Summary collapse

Instance Method Summary collapse

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

#dataTable, Array<WorldMapObject>

Informations on the map

Returns:

  • (Table, Array<WorldMapObject>)

#imageString

Filename of the image used to display the world map

Returns:

#name_file_idInteger, ...

Wolrd map name file id

Returns:

#name_idInteger

World map name text id

Returns:

Class Method Details

.data_filename

Name of the file containing the data

.each_id(&block)

Run the given block on each worldmap id

Parameters:

  • block (Proc)

.get(id) ⇒ WorldMap

Return a WorldMap

Parameters:

Returns:

.worldmap_image_filename(filename) ⇒ String

Give the appropriate filename for the worldmap image in Graphics/interface

Parameters:

Returns:

.zone_list(id) ⇒ Array<Integer>

Get the zones id of this worldmap

Parameters:

Returns:

Instance Method Details

#nameString

Get the name of the worldmap

Returns:

#zone_list_from_dataArray<Integer>

Gather the zone list from data. REALLY CONSUMING

Returns: