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
);
44 void buttonUp(const Gosu::Button btn
);
50 bool needsRedraw() const;
53 void update(unsigned long dt
);
55 bool loadArea(const std::string
& areaName
, coord_t playerPos
);
58 bool processDescriptor();
63 boost::scoped_ptr
<Player
> player
;
65 //! WorldTypeLocality XML Storage Enum
67 Stores the World locality type. Options are "local" (singleplayer),
68 or "network" (multiplayer).
70 enum WorldTypeLocality
{
75 //! WorldTypeMovement XML Storage Enum
77 Stores the World movement type. Options are "turn" (roguelike),
78 "tile" (yume nikki), or "notile" (zeldalike).
80 enum WorldTypeMovement
{
86 //! WorldEntry XML Storage Struct
88 Stores the World's entry point data. Includes the start
89 Area, and starting coordinates.
96 //! WorldValues XML Storage Struct
98 Main XML storage struct for World.
103 std::string playerentity
;
104 WorldTypeLocality locality
;
105 WorldTypeMovement movement
;
107 std::vector
<std::string
> scripts
;