aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/mpal/mpal.h
diff options
context:
space:
mode:
authorStrangerke2012-09-01 00:25:35 +0200
committerStrangerke2012-09-01 00:25:35 +0200
commitf2df769aab10e719cc4fba6cb71e1500eb3acae4 (patch)
tree6e1d574e9fe484639612f350e47f125740fbaf80 /engines/tony/mpal/mpal.h
parent7fbfbc8e6b57729e1a5008d256b28b0571f1c3b6 (diff)
downloadscummvm-rg350-f2df769aab10e719cc4fba6cb71e1500eb3acae4.tar.gz
scummvm-rg350-f2df769aab10e719cc4fba6cb71e1500eb3acae4.tar.bz2
scummvm-rg350-f2df769aab10e719cc4fba6cb71e1500eb3acae4.zip
TONY: More renaming
Diffstat (limited to 'engines/tony/mpal/mpal.h')
-rw-r--r--engines/tony/mpal/mpal.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/engines/tony/mpal/mpal.h b/engines/tony/mpal/mpal.h
index 1af0f2c9e9..c5f505063f 100644
--- a/engines/tony/mpal/mpal.h
+++ b/engines/tony/mpal/mpal.h
@@ -100,11 +100,8 @@ namespace MPAL {
#define MAXFRAMES 400 // frame animation of an object
#define MAXPATTERN 40 // pattern of animation of an object
-
#define MAXPOLLINGLOCATIONS 64
-#define LPSTR char *
-
/**
* Macro for use with queries that may refer to X and Y co-ordinates
*/
@@ -113,7 +110,6 @@ enum QueryCoordinates {
MPQ_Y
};
-
/**
* Query can be used with mpalQuery methods. In practice corresponds all claims
* that can do at the library
@@ -164,8 +160,8 @@ typedef struct {
short _destX, _destY;
signed char _destZ;
short _objectID;
-} ITEM;
-typedef ITEM *LPITEM;
+} Item;
+typedef Item *LpItem;
/**
@@ -228,7 +224,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
* after use. The message will be in ASCIIZ format.
*/
#define mpalQueryMessage(nMsg) \
- (LPSTR)mpalQueryHANDLE(MPQ_MESSAGE, (uint32)(nMsg))
+ (char *)mpalQueryHANDLE(MPQ_MESSAGE, (uint32)(nMsg))
/**
@@ -246,7 +242,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
* @param dwCoord MPQ_X or MPQ_Y coordinate to retrieve
* @returns Size
*/
-#define mpalQueryLocationSize(nLoc,dwCoord) \
+#define mpalQueryLocationSize(nLoc, dwCoord) \
mpalQueryDWORD(MPQ_LOCATION_SIZE, (uint32)(nLoc), (uint32)(dwCoord))
@@ -268,7 +264,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
* @returns Structure filled with requested information
*/
#define mpalQueryItemData(nItem) \
- (LPITEM)mpalQueryHANDLE(MPQ_ITEM_DATA, (uint32)(nItem))
+ (LpItem)mpalQueryHANDLE(MPQ_ITEM_DATA, (uint32)(nItem))
/**
@@ -302,7 +298,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
* is less than or equal to 0), the string will be empty.
*/
#define mpalQueryItemName(nItem, lpszName) \
- mpalQueryHANDLE(MPQ_ITEM_NAME, (uint32)(nItem), (LPSTR)(lpszName))
+ mpalQueryHANDLE(MPQ_ITEM_NAME, (uint32)(nItem), (char *)(lpszName))
/**
@@ -316,7 +312,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
* string terminated with 0.
*/
#define mpalQueryDialogPeriod(nPeriod) \
- (LPSTR)mpalQueryHANDLE(MPQ_DIALOG_PERIOD, (uint32)(nPeriod))
+ (char *)mpalQueryHANDLE(MPQ_DIALOG_PERIOD, (uint32)(nPeriod))
/**
@@ -379,8 +375,8 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
* @returns Handle to the thread that is running the box, or
* CORO_INVALID_PID_VALUE if the dialogue does not exist.
*/
-#define mpalQueryDoDialog(nDialog,nGroup) \
- mpalQueryDWORD(MPQ_DO_DIALOG, (uint32)(nDialog),(uint32)(nGroup))
+#define mpalQueryDoDialog(nDialog, nGroup) \
+ mpalQueryDWORD(MPQ_DO_DIALOG, (uint32)(nDialog), (uint32)(nGroup))
/**
* @defgroup Functions exported to the main game
@@ -422,7 +418,7 @@ uint32 mpalQueryDWORD(uint16 wQueryType, ...);
* @remarks This is the specialised version of the original single mpalQuery
* method that returns a pointer or handle.
*/
-HANDLE mpalQueryHANDLE(uint16 wQueryType, ...);
+MpalHandle mpalQueryHANDLE(uint16 wQueryType, ...);
/**
* This is a general function to communicate with the library, to request information