World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
PlayerFrameTable.h
См. документацию.
1
#pragma once
2
3
#include "
Engine/Objects/Player.h
"
4
5
/* 46 */
6
#pragma pack(push, 1)
7
struct
PlayerFrame
{
8
CHARACTER_EXPRESSION_ID
expression
;
9
unsigned
__int16
uTextureID
;
10
__int16
uAnimTime
;
11
__int16
uAnimLength
;
12
__int16
uFlags
;
13
};
14
#pragma pack(pop)
15
16
/* 47 */
17
#pragma pack(push, 1)
18
struct
PlayerFrameTable
{
19
inline
PlayerFrameTable
() :
uNumFrames
(0),
pFrames
(nullptr) {}
20
21
unsigned
int
GetFrameIdByExpression
(
CHARACTER_EXPRESSION_ID
expression);
22
PlayerFrame
*
GetFrameBy_x
(
unsigned
int
uFramesetID,
unsigned
int
uFrameID);
23
PlayerFrame
*
GetFrameBy_y
(
int
*a2,
int
*a3,
int
a4);
24
void
ToFile
();
25
void
FromFile
(
void
*data_mm6,
void
*data_mm7,
void
*data_mm8);
26
int
FromFileTxt
(
const
char
*Args);
27
28
unsigned
int
uNumFrames
;
29
struct
PlayerFrame
*
pFrames
;
30
};
31
#pragma pack(pop)
32
33
extern
struct
PlayerFrameTable
*
pPlayerFrameTable
;
// idb
PlayerFrameTable
Definition:
PlayerFrameTable.h:18
PlayerFrame
Definition:
PlayerFrameTable.h:7
PlayerFrameTable::GetFrameBy_x
PlayerFrame * GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID)
Definition:
PlayerFrameTable.cpp:17
PlayerFrameTable::pFrames
struct PlayerFrame * pFrames
Definition:
PlayerFrameTable.h:29
PlayerFrame::uTextureID
unsigned __int16 uTextureID
Definition:
PlayerFrameTable.h:9
PlayerFrameTable::GetFrameBy_y
PlayerFrame * GetFrameBy_y(int *a2, int *a3, int a4)
Definition:
PlayerFrameTable.cpp:45
PlayerFrame::expression
CHARACTER_EXPRESSION_ID expression
Definition:
PlayerFrameTable.h:8
PlayerFrameTable::uNumFrames
unsigned int uNumFrames
Definition:
PlayerFrameTable.h:28
PlayerFrameTable::FromFileTxt
int FromFileTxt(const char *Args)
Definition:
PlayerFrameTable.cpp:97
CHARACTER_EXPRESSION_ID
CHARACTER_EXPRESSION_ID
Definition:
Player.h:341
PlayerFrame::uAnimTime
__int16 uAnimTime
Definition:
PlayerFrameTable.h:10
PlayerFrameTable::GetFrameIdByExpression
unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression)
Definition:
PlayerFrameTable.cpp:8
pPlayerFrameTable
struct PlayerFrameTable * pPlayerFrameTable
Definition:
mm7_data.cpp:171
PlayerFrameTable::FromFile
void FromFile(void *data_mm6, void *data_mm7, void *data_mm8)
Definition:
PlayerFrameTable.cpp:79
PlayerFrame::uFlags
__int16 uFlags
Definition:
PlayerFrameTable.h:12
PlayerFrameTable::PlayerFrameTable
PlayerFrameTable()
Definition:
PlayerFrameTable.h:19
Player.h
PlayerFrame::uAnimLength
__int16 uAnimLength
Definition:
PlayerFrameTable.h:11
PlayerFrameTable::ToFile
void ToFile()
Definition:
PlayerFrameTable.cpp:62
Engine
Tables
PlayerFrameTable.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:34. Создано системой
1.8.17