1 /******************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011 OmegaSDG **
5 ******************************/
26 This class is conceptually the main class of the Tsunagari Tile Engine.
31 static World
* getWorld();
34 World(Resourcer
* rc
, GameWindow
* w
);
43 void buttonDown(const Gosu::Button btn
);
49 bool needsRedraw() const;
54 bool loadArea(const std::string
& areaName
, coord_t playerPos
);
57 bool processDescriptor();
62 boost::scoped_ptr
<Player
> player
;
64 //! WorldTypeLocality XML Storage Enum
66 Stores the World locality type. Options are "local" (singleplayer),
67 or "network" (multiplayer).
69 enum WorldTypeLocality
{
74 //! WorldTypeMovement XML Storage Enum
76 Stores the World movement type. Options are "turn" (roguelike),
77 "tile" (yume nikki), or "notile" (zeldalike).
79 enum WorldTypeMovement
{
85 //! WorldEntry XML Storage Struct
87 Stores the World's entry point data. Includes the start
88 Area, and starting coordinates.
95 //! WorldValues XML Storage Struct
97 Main XML storage struct for World.
102 std::string playersprite
;
103 WorldTypeLocality locality
;
104 WorldTypeMovement movement
;
106 std::vector
<std::string
> scripts
;