1 /******************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011 OmegaSDG **
5 ******************************/
13 #include "log.h" // for message_mode_t
15 //! Game Movement Mode
16 enum movement_mode_t
{
29 //! coord_t constructor
30 coord_t
coord(long x
, long y
, long z
);
39 //! cube_t constructor
40 cube_t
cube(long x1
, long y1
, long z1
,
41 long x2
, long y2
, long z2
);
43 //! Client Configuration
46 movement_mode_t movemode
;
52 message_mode_t loglevel
;
55 //! Returns a bool from a "true"/"false" string.
56 bool parseBool(const std::string
& s
);
58 //! Split a string by a delimiter.
59 std::vector
<std::string
> splitStr(std::string str
,
60 const std::string
& delimiter
);
62 //! Convert an integer to a representative string.
63 std::string
itostr(long in
);