World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
159 if (
v1->sViewCenterY >
v2 + v4)
v1->sViewCenterY =
v2 + v4;
161 v5 =
v1->indoor_center_x;
163 if (
v1->sViewCenterX < v5 + v6)
v1->sViewCenterX = v5 + v6;
166 if (
v1->sViewCenterY < v7)
v1->sViewCenterY = v7;
168 if (
v1->sViewCenterX > v5 + v4)
v1->sViewCenterX = v5 + v4;
173 for (
unsigned short i = 0; i < 256; ++i)
pPalette[i] =
Color16(i, i, i);
187 minimum_x = 0x40000000;
188 minimum_y = 0x40000000;
190 maximum_x = -0x40000000;
191 maximum_y = -0x40000000;
196 if (
v3->x < minimum_x) minimum_x =
v3->x;
197 if (
v3->x > maximum_x) maximum_x =
v3->x;
198 if (
v3->y < minimum_y) minimum_y =
v3->x;
199 if (
v3->y > maximum_y) maximum_y =
v3->x;
204 if (v6->x < minimum_x) minimum_x =
v3->x;
205 if (v6->x > maximum_x) maximum_x =
v3->x;
207 if (v6->y < minimum_y) minimum_y =
v3->y;
208 if (v6->y > maximum_y) maximum_y =
v3->y;
236 .pUnidentifiedName));
251 if (!
pActors[
id].GetActorsRelation(0) &&
pActors[
id].ActorFriend() &&
319 int clickable_distance = 512;
327 bool in_range =
distance < clickable_distance;
332 int item_id = PID_ID(
v0);
335 item_id >= 1000 || !
pSpriteObjects[item_id].uObjectDescID || !in_range) {
343 int mon_id = PID_ID(
v0);
391 if (!
pOutdoor->
pBModels[(
signed int)(
v0 & 0xFFFF) >> 9].pFaces[PID_ID(
v0) & 0x3F].Clickable()) {
401 .pFaces[PID_ID(
v0) & 0x3F]
std::array< LevelDecoration, 3000 > pLevelDecorations
DecorationDesc * GetDecoration(unsigned int index)
std::array< SpriteObject, MAX_SPRITE_OBJECTS > pSpriteObjects
void sub_4451A8_press_any_key(int a1, int a2, int a4)
void GameUI_StatusBar_NothingHere()
struct BLVFaceExtra * pFaceExtras
void DecorationInteraction(unsigned int id, unsigned int pid)
bool Contains(unsigned int x, unsigned int y)
uint16_t pGroups_copy[51]
static void AI_FaceObject(unsigned int uActorID, unsigned int uObjID, int UNUSED, struct AIDirection *Dir_In)
unsigned __int8 _quest_bits[64]
Localization * localization
unsigned int ObjectIDByItemID(unsigned int uItemID)
int _576E2C_current_minimap_zoom
NZIArray< struct Player *, 5 > pPlayers
unsigned __int16 uSpriteFrameID
int get_picked_object_zbuf_val()
enum CURRENT_SCREEN current_screen_type
struct stru262_TurnBased * pTurnEngine
void SetViewport(int uX, int uY, int uZ, int uW)
unsigned __int16 uObjectDescID
bool AddItemToParty(ItemGen *pItem)
struct ItemsTable * pItemsTable
void PartyFindsGold(unsigned int uNumGold, int _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal)
@ LEVEL_DECORATION_VISIBLE_ON_MAP
EGLSurface EGLint EGLint y
struct Vec3_int_ vPosition
LevelDecoration * activeLevelDecoration
unsigned int uMinimapZoom
struct ViewingParams * viewparams
BLVMapOutlines * pMapOutlines
std::array< Actor, 500 > pActors
String branchless_dialogue_str
int Create(int yaw, int pitch, int a4, int a5)
struct ItemGen containing_item
GLsizei GLsizei GLfloat distance
unsigned __int16 uSoundID
void CenterOnPartyZoomOut()
BLVMapOutline pOutlines[7000]
GLfloat GLfloat GLfloat v2
unsigned int uActiveCharacter
GLfloat GLfloat GLfloat GLfloat v3
String FormatString(unsigned int index,...) const
void _449B7E_toggle_bit(unsigned char *pArray, __int16 a2, unsigned __int16 bToggle)
struct NPCStats * pNPCStats
void GameUI_StatusBar_OnEvent(const String &str, unsigned int num_seconds)
void SetHoldingItem(ItemGen *pItem)
void SetScreen(int uX, int uY, int uZ, int uW)
bool ActorInteraction(unsigned int id)
struct Vec3_short_ * pVertices
void OnGameViewportClick()
void CenterOnPartyZoomIn()
void EventProcessor(int uEventID, int targetObj, int canShowMessages, int entry_line)
LEVEL_TYPE uCurrentlyLoadedLevelType
int GetSector(int sX, int sY, int sZ)
static void OnInteraction(unsigned int uLayingItemID)
struct GUIMessageQueue * pMessageQueue_50CBD0
stru123 stru_5E4C90_MapPersistVars
uint16_t Color16(uint32_t r, uint32_t g, uint32_t b)
OutdoorLocation * pOutdoor
unsigned int uMapBookMapZoom
unsigned __int16 uAttributes
@ ITEM_SPELLBOOK_MIND_REMOVE_FEAR
void ItemInteraction(unsigned int item_id)
bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID)
struct ObjectList * pObjectList
NZIArray< ItemDesc, 800 > pItems
struct DecorationList * pDecorationList