equal
deleted
inserted
replaced
132 /** |
132 /** |
133 * Number of pixels between lines |
133 * Number of pixels between lines |
134 */ |
134 */ |
135 const PixelDimension GRAPHICS_INFO_TEXT_LINE_OFFSET = 5; |
135 const PixelDimension GRAPHICS_INFO_TEXT_LINE_OFFSET = 5; |
136 |
136 |
137 // Filesystem paths |
137 /** |
|
138 * @name Network |
|
139 * @{ |
|
140 */ |
|
141 |
|
142 /** Default port used for network games */ |
|
143 const std::string NETWORK_PORT_STR = "9338"; |
|
144 |
|
145 /** Maximum packet size used for normal NetworkPackets... aligned to a sensible UDP mtu */ |
|
146 const size_t NETWORK_PACKET_SIZE = 1280; |
|
147 |
|
148 /** Backlog used for TCP server... doesn't really matter all that much */ |
|
149 const int NETWORK_LISTEN_BACKLOG = 5; |
|
150 |
|
151 /** Magic string used to identify game between client/server */ |
|
152 const char NETWORK_MAGIC_STR[8+1] = "KISNGLIS"; |
|
153 const uint64_t NETWORK_MAGIC_ID = * ((const uint64_t *) NETWORK_MAGIC_STR); |
|
154 |
|
155 // @} |
|
156 |
|
157 /** |
|
158 * @name Filesystem paths |
|
159 * @{ |
|
160 */ |
138 const std::string PLAYER_SKIN_PATH = (PROJECT_DATA_DIR "/skin.png"); |
161 const std::string PLAYER_SKIN_PATH = (PROJECT_DATA_DIR "/skin.png"); |
139 const std::string RESOURCE_XML_PATH = (PROJECT_DATA_DIR "/resources.xml"); |
162 const std::string RESOURCE_XML_PATH = (PROJECT_DATA_DIR "/resources.xml"); |
140 |
163 |
|
164 // @} |
|
165 |
141 #endif |
166 #endif |