about summary refs log tree commit diff stats
path: root/data/maps/four_rooms/rooms/Examples Room.txtpb
blob: dc829711f540ffcfc4065c42e58d61d3ccb61c44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "Examples Room"
panels {
  name: "SIZE (1)"
  path: "Panels/Room 2 Examples/entry_1"
  clue: "size"
  answer: "tiny"
  symbols: EXAMPLE
}
panels {
  name: "EMOTION (1)"
  path: "Panels/Room 2 Examples/entry_2"
  clue: "emotion"
  answer: "love"
  symbols: EXAMPLE
}
panels {
  name: "SIZE (2)"
  path: "Panels/Room 2 Examples/entry_3"
  clue: "size"
  answer: "huge"
  symbols: EXAMPLE
}
panels {
  name: "EMOTION (2)"
  path: "Panels/Room 2 Examples/entry_4"
  clue: "emotion"
  answer: "fear"
  symbols: EXAMPLE
}
panels {
  name: "SUPERLATIVE"
  path: "Panels/Room 2 Examples/entry_5"
  clue: "superlative"
  answer: "best"
  symbols: EXAMPLE
}
panels {
  name: "SONNET"
  path: "Panels/Room 2 Examples/entry_6"
  clue: "sonnet"
  answer: "poem"
  symbols: EXAMPLE
}
panels {
  name: "URN"
  path: "Panels/Room 2 Examples/entry_7"
  clue: "urn"
  answer: "grave"
  symbols: EXAMPLE
}
panels {
  name: "ART"
  path: "Panels/Room 2 Examples/entry_8"
  clue: "art"
  answer: "dance"
  symbols: EXAMPLE
}
ports {
  name: "DAEDALUS"
  path: "Components/Warps/worldport2"
  orientation: "north"
}
span class="w"> medium = CharacterMedium::Normal; }; struct Prototype { std::string name; vec2i pos; vec2i collisionOffset; vec2i collisionSize; std::string animationFilename; std::string interactionScript; bool shadow = false; bool wander = false; int movementSpeed = -1; std::string enclosureZone; }; struct Trigger { std::string name; vec2i pos; vec2i size; std::string script; }; struct Zone { vec2i ul; vec2i dr; }; class Map { public: explicit Map(std::string_view name); const std::string& getName() const { return name_; } const vec2i& getMapSize() const { return mapSize_; } const vec2i& getTileSize() const { return tileSize_; } const std::vector<std::vector<Tile>>& getUpperLayers() const { return upperLayers_; } const std::vector<std::vector<Tile>>& getLowerLayers() const { return lowerLayers_; } const std::string& getTilesetFilename() const { return tilesetFilename_; } int getTilesetColumns() const { return tilesetColumns_; } bool isBlocked(int x, int y) const; StepType getStepType(int x, int y) const; CharacterMedium getMedium(int x, int y) const; const std::vector<Prototype>& getPrototypes() const { return prototypes_; } const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } const std::vector<Trigger>& getTriggers() const { return triggers_; } const Zone& getZone(const std::string& name) const { return zones_.at(name); } private: std::string name_; vec2i mapSize_; vec2i tileSize_; std::vector<std::vector<Tile>> upperLayers_; std::vector<std::vector<Tile>> lowerLayers_; std::string tilesetFilename_; int tilesetColumns_; std::vector<Prototype> prototypes_; std::map<std::string, vec2i> warpPoints_; std::vector<Trigger> triggers_; std::map<std::string, Zone> zones_; }; #endif /* end of include guard: MAP_H_D95D6D47 */