World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
49 std::stringstream
stream(pMapStatsTXT);
51 std::getline(
stream, tmpString);
52 std::getline(
stream, tmpString);
53 std::getline(
stream, tmpString);
61 std::getline(
stream, tmpString);
62 std::stringstream line(tmpString);
63 size_t decode_step = 0;
65 std::getline(line, tmpString,
'\t');
66 char test_string[1024];
67 strcpy(test_string, tmpString.c_str());
68 switch (decode_step) {
123 strcpy(work_str, test_string);
125 work_str_len = strlen(work_str);
127 while (work_str[work_str_pos] !=
'-') {
129 if (work_str_pos >= work_str_len)
break;
131 work_str[work_str_pos] = 0;
133 if (work_str_pos < work_str_len)
148 strcpy(work_str, test_string);
150 work_str_len = strlen(work_str);
152 while (work_str[work_str_pos] !=
'-') {
154 if (work_str_pos >= work_str_len)
break;
156 work_str[work_str_pos] = 0;
158 if (work_str_pos < work_str_len)
173 strcpy(work_str, test_string);
175 work_str_len = strlen(work_str);
177 while (work_str[work_str_pos] !=
'-') {
179 if (work_str_pos >= work_str_len)
break;
181 work_str[work_str_pos] = 0;
183 if (work_str_pos < work_str_len)
194 for (
int j = 0; j < 25; j++) {
200 if (
pInfos[i].uEAXEnv == 0xff) {
221 Error(
"Map not found");
231 if (
pInfos[i].pFilename == map_name) {
236 Error(
"Map not found!");
245 int v5 = rand() % 100;
249 int v10 = v8 - v7 + 1;
252 int v13 = v7 + (
uint64_t)(v12 % v10);
254 if (v5 < 20)
return result;
263 v34 = rand() % 51 + 50;
264 }
else if (a2->
uIndex == 2) {
266 v34 = rand() % 101 + 100;
267 }
else if (a2->
uIndex == 3) {
269 v34 = rand() % 301 + 200;
270 }
else if (a2->
uIndex == 4) {
272 v34 = rand() % 501 + 500;
273 }
else if (a2->
uIndex == 5) {
275 v34 = rand() % 1001 + 1000;
276 }
else if (a2->
uIndex == 6) {
278 v34 = rand() % 3001 + 2000;
305 return a1a.
Create(0, 0, 0, 0);
309 const char *model_name;
314 model_name =
"Party Start";
317 model_name =
"North Start";
320 model_name =
"South Start";
323 model_name =
"East Start";
326 model_name =
"West Start";
329 Error(
"Invalid enum value: %u", point);
332 strcpy(pName, model_name);
std::array< LevelDecoration, 3000 > pLevelDecorations
char * RemoveQuotes(char *str)
String pEncounterMonster1Texture
void TeleportToStartingPoint(MapStartPoint point)
int Start_Party_Teleport_Flag
void * LoadCompressedTexture(const String &pContainer, size_t *data_size=nullptr)
MAP_TYPE GetMapInfo(const String &Str2)
uint8_t uEncounterMonster2AtMost
static const unsigned int uIntegerHalfPi
uint8_t uEncounterMonster3AtMost
unsigned int ObjectIDByItemID(unsigned int uItemID)
unsigned __int64 uint64_t
uint8_t uEncounterMonster1AtMost
uint16_t GetDecorIdByName(const char *pName)
unsigned __int16 uSpriteFrameID
struct MapStats * pMapStats
unsigned __int16 uObjectDescID
struct ItemsTable * pItemsTable
int SpawnRandomTreasure(struct SpawnPointMM7 *a2)
ITEM_ENCHANTMENT special_enchantment
int sub_450521_ProllyDropItemAt(int ecx0, int a2, int a3, int a4, int a5, uint16_t a6)
struct Vec3_int_ vPosition
int Party_Teleport_Cam_Pitch
uint8_t uEncounterMonster3AtLeast
const char * location_type[]
int Party_Teleport_Cam_Yaw
size_t uNumLevelDecorations
unsigned int uFirstVisitedAt
uint8_t uEncounterMonster1AtLeast
uint8_t uEncounterMonster2AtLeast
LODFile_IconsBitmaps * pEvents_LOD
int Create(int yaw, int pitch, int a4, int a5)
struct ItemGen containing_item
std::array< std::array< char, 14 >, 7 > byte_4E8168
unsigned __int16 uSoundID
String pEncounterMonster3Texture
int sub_410D99_get_map_index(int a1)
int Party_Teleport_Z_Speed
EGLImageKHR EGLint * name
struct stru193_math * stru_5C6E00
String GetSubNodeName(size_t index) const
String MakeLower(const String &text)
int GetSector(int sX, int sY, int sZ)
unsigned int uRespawnIntervalDays
unsigned __int16 uAttributes
struct ObjectList * pObjectList
String pEncounterMonster2Texture
NZIArray< ItemDesc, 800 > pItems
struct DecorationList * pDecorationList