liblcf
RPG::Map Class Reference

#include <rpg_map.h>

+ Collaboration diagram for RPG::Map:

Public Types

enum  ScrollType {
  ScrollType_none = 0,
  ScrollType_vertical = 1,
  ScrollType_horizontal = 2,
  ScrollType_both = 3
}
 
enum  GeneratorMode {
  GeneratorMode_single_passage = 0,
  GeneratorMode_linked_rooms = 1,
  GeneratorMode_maze_passage = 2,
  GeneratorMode_open_room = 3
}
 
enum  GeneratorTiles {
  GeneratorTiles_one = 0,
  GeneratorTiles_two = 1
}
 

Public Attributes

std::string lmu_header
 
int32_t chipset_id = 1
 
int32_t width = 20
 
int32_t height = 15
 
int32_t scroll_type = 0
 
bool parallax_flag = false
 
std::string parallax_name
 
bool parallax_loop_x = false
 
bool parallax_loop_y = false
 
bool parallax_auto_loop_x = false
 
int32_t parallax_sx = 0
 
bool parallax_auto_loop_y = false
 
int32_t parallax_sy = 0
 
bool generator_flag = false
 
int32_t generator_mode = 0
 
bool top_level = false
 
int32_t generator_tiles = 0
 
int32_t generator_width = 4
 
int32_t generator_height = 1
 
bool generator_surround = true
 
bool generator_upper_wall = true
 
bool generator_floor_b = true
 
bool generator_floor_c = true
 
bool generator_extra_b = true
 
bool generator_extra_c = true
 
std::vector< uint32_t > generator_x
 
std::vector< uint32_t > generator_y
 
std::vector< int16_t > generator_tile_ids
 
std::vector< int16_t > lower_layer
 
std::vector< int16_t > upper_layer
 
std::vector< Eventevents
 
int32_t save_count_2k3e = 0
 
int32_t save_count = 0
 

Static Public Attributes

static constexpr auto kScrollTypeTags
 
static constexpr auto kGeneratorModeTags
 
static constexpr auto kGeneratorTilesTags
 

Detailed Description

Definition at line 26 of file rpg_map.h.

Member Enumeration Documentation

◆ GeneratorMode

Enumerator
GeneratorMode_single_passage 
GeneratorMode_linked_rooms 
GeneratorMode_maze_passage 
GeneratorMode_open_room 

Definition at line 41 of file rpg_map.h.

◆ GeneratorTiles

Enumerator
GeneratorTiles_one 
GeneratorTiles_two 

Definition at line 53 of file rpg_map.h.

◆ ScrollType

Enumerator
ScrollType_none 
ScrollType_vertical 
ScrollType_horizontal 
ScrollType_both 

Definition at line 29 of file rpg_map.h.

Member Data Documentation

◆ chipset_id

static TypedField< RPG::Map, int32_t > static_chipset_id & RPG::Map::chipset_id = 1

◆ events

static TypedField< RPG::Map, std::vector< RPG::Event > > static_events & RPG::Map::events

Definition at line 91 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_extra_b

static TypedField< RPG::Map, bool > static_generator_extra_b & RPG::Map::generator_extra_b = true

Definition at line 84 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_extra_c

static TypedField< RPG::Map, bool > static_generator_extra_c & RPG::Map::generator_extra_c = true

Definition at line 85 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_flag

static TypedField< RPG::Map, bool > static_generator_flag & RPG::Map::generator_flag = false

Definition at line 74 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_floor_b

static TypedField< RPG::Map, bool > static_generator_floor_b & RPG::Map::generator_floor_b = true

Definition at line 82 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_floor_c

static TypedField< RPG::Map, bool > static_generator_floor_c & RPG::Map::generator_floor_c = true

Definition at line 83 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_height

static TypedField< RPG::Map, int32_t > static_generator_height & RPG::Map::generator_height = 1

Definition at line 79 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_mode

static TypedField< RPG::Map, int32_t > static_generator_mode & RPG::Map::generator_mode = 0

Definition at line 75 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_surround

static TypedField< RPG::Map, bool > static_generator_surround & RPG::Map::generator_surround = true

Definition at line 80 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_tile_ids

static TypedField< RPG::Map, std::vector< int16_t > > static_generator_tile_ids & RPG::Map::generator_tile_ids

Definition at line 88 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_tiles

static TypedField< RPG::Map, int32_t > static_generator_tiles & RPG::Map::generator_tiles = 0

Definition at line 77 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_upper_wall

static TypedField< RPG::Map, bool > static_generator_upper_wall & RPG::Map::generator_upper_wall = true

Definition at line 81 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_width

static TypedField< RPG::Map, int32_t > static_generator_width & RPG::Map::generator_width = 4

Definition at line 78 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_x

static TypedField< RPG::Map, std::vector< uint32_t > > static_generator_x & RPG::Map::generator_x

Definition at line 86 of file rpg_map.h.

Referenced by RPG::operator==().

◆ generator_y

static TypedField< RPG::Map, std::vector< uint32_t > > static_generator_y & RPG::Map::generator_y

Definition at line 87 of file rpg_map.h.

Referenced by RPG::operator==().

◆ height

static TypedField< RPG::Map, int32_t > static_height & RPG::Map::height = 15

Definition at line 64 of file rpg_map.h.

Referenced by RPG::operator==().

◆ kGeneratorModeTags

constexpr auto RPG::Map::kGeneratorModeTags
static
Initial value:
= makeEnumTags<GeneratorMode>(
"single_passage",
"linked_rooms",
"maze_passage",
"open_room"
)

Definition at line 47 of file rpg_map.h.

◆ kGeneratorTilesTags

constexpr auto RPG::Map::kGeneratorTilesTags
static
Initial value:
= makeEnumTags<GeneratorTiles>(
"one",
"two"
)

Definition at line 57 of file rpg_map.h.

◆ kScrollTypeTags

constexpr auto RPG::Map::kScrollTypeTags
static
Initial value:
= makeEnumTags<ScrollType>(
"none",
"vertical",
"horizontal",
"both"
)

Definition at line 35 of file rpg_map.h.

◆ lmu_header

std::string RPG::Map::lmu_header

Definition at line 28 of file rpg_map.h.

Referenced by LMU_Reader::Save().

◆ lower_layer

static TypedField< RPG::Map, std::vector< int16_t > > static_lower_layer & RPG::Map::lower_layer

Definition at line 89 of file rpg_map.h.

Referenced by RPG::operator==().

◆ parallax_auto_loop_x

static TypedField< RPG::Map, bool > static_parallax_auto_loop_x & RPG::Map::parallax_auto_loop_x = false

Definition at line 70 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ parallax_auto_loop_y

static TypedField< RPG::Map, bool > static_parallax_auto_loop_y & RPG::Map::parallax_auto_loop_y = false

Definition at line 72 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ parallax_flag

static TypedField< RPG::Map, bool > static_parallax_flag & RPG::Map::parallax_flag = false

Definition at line 66 of file rpg_map.h.

Referenced by RPG::operator==().

◆ parallax_loop_x

static TypedField< RPG::Map, bool > static_parallax_loop_x & RPG::Map::parallax_loop_x = false

Definition at line 68 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ parallax_loop_y

static TypedField< RPG::Map, bool > static_parallax_loop_y & RPG::Map::parallax_loop_y = false

Definition at line 69 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ parallax_name

static TypedField< RPG::Map, std::string > static_parallax_name & RPG::Map::parallax_name

Definition at line 67 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ parallax_sx

static TypedField< RPG::Map, int32_t > static_parallax_sx & RPG::Map::parallax_sx = 0

Definition at line 71 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ parallax_sy

static TypedField< RPG::Map, int32_t > static_parallax_sy & RPG::Map::parallax_sy = 0

Definition at line 73 of file rpg_map.h.

Referenced by RPG::operator==(), and RPG::SaveMapInfo::Setup().

◆ save_count

static TypedField< RPG::Map, int32_t > static_save_count & RPG::Map::save_count = 0

Definition at line 93 of file rpg_map.h.

Referenced by RPG::operator==(), and LMU_Reader::PrepareSave().

◆ save_count_2k3e

static TypedField< RPG::Map, int32_t > static_save_count_2k3e & RPG::Map::save_count_2k3e = 0

Definition at line 92 of file rpg_map.h.

Referenced by RPG::operator==().

◆ scroll_type

static TypedField< RPG::Map, int32_t > static_scroll_type & RPG::Map::scroll_type = 0

Definition at line 65 of file rpg_map.h.

Referenced by RPG::operator==().

◆ top_level

static TypedField< RPG::Map, bool > static_top_level & RPG::Map::top_level = false

Definition at line 76 of file rpg_map.h.

Referenced by RPG::operator==().

◆ upper_layer

static TypedField< RPG::Map, std::vector< int16_t > > static_upper_layer & RPG::Map::upper_layer

Definition at line 90 of file rpg_map.h.

Referenced by RPG::operator==().

◆ width

static TypedField< RPG::Map, int32_t > static_width & RPG::Map::width = 20

Definition at line 63 of file rpg_map.h.

Referenced by RPG::operator==().


The documentation for this class was generated from the following files: