Skip to content

Commit

Permalink
TONY: Cleaned up the @defgroup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 16, 2012
1 parent 8335c25 commit a91553e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
3 changes: 2 additions & 1 deletion engines/tony/custom.cpp
Expand Up @@ -131,14 +131,15 @@ void LoadChangedHotspot(Common::InSaveFile *f) {


/**
* @defgroup Classes required for custom functions
* Classes required for custom functions
*
* Tony (To Move him) -> You can do MPAL through the animation? I really think so
*
* SendMessage -> I'd say just theEngine.SendMessage()
* ChangeLocation -> theEngine.ChangeLocation()
* AddInventory -> theEngine.AddInventory()
*/

void MCharResetCodes(void) {
for (int i = 0; i < 10; i++)
GLOBALS._mCharacter[i]._item = GLOBALS._loc->getItemFromCode(GLOBALS._mCharacter[i]._code);
Expand Down
6 changes: 4 additions & 2 deletions engines/tony/globals.h
Expand Up @@ -253,8 +253,8 @@ class Globals {

/**
* @defgroup MPAL variables
*
*/
*/
//@{
uint32 _mpalError;
LPITEMIRQFUNCTION _lpiifCustom;
LPLPCUSTOMFUNCTION _lplpFunctions;
Expand Down Expand Up @@ -292,6 +292,8 @@ class Globals {
uint32 _nExecutingDialog;
uint32 _nExecutingChoice;
uint32 _nSelectedChoice;

//@}
};

} // End of namespace Tony
Expand Down
5 changes: 5 additions & 0 deletions engines/tony/mpal/expr.cpp
Expand Up @@ -42,6 +42,7 @@ namespace MPAL {
/**
* @defgroup Mathamatical operations
*/
//@{

#define OP_MUL ((1 << 4) | 0)
#define OP_DIV ((1 << 4) | 1)
Expand Down Expand Up @@ -73,9 +74,12 @@ enum ExprListTypes {
ELT_PARENTH2 = 4
};

//@}

/**
* @defgroup Structures
*/
//@{

/**
* Mathamatical framework to manage operations
Expand All @@ -96,6 +100,7 @@ typedef struct {
} EXPRESSION;
typedef EXPRESSION *LPEXPRESSION;

//@}

/**
* Duplicate a mathematical expression.
Expand Down
3 changes: 3 additions & 0 deletions engines/tony/mpal/loadmpc.cpp
Expand Up @@ -517,6 +517,7 @@ static const byte *ParseLocation(const byte *lpBuf, LPMPALLOCATION lpmlLocation)
/**
* @defgroup Exported functions
*/
//@{

/**
* Reads and interprets the MPC file, and create structures for various directives
Expand Down Expand Up @@ -796,6 +797,8 @@ void FreeMpc() {
}
}

//@}

} // end of namespace MPAL

} // end of namespace Tony
3 changes: 3 additions & 0 deletions engines/tony/mpal/mpal.cpp
Expand Up @@ -1395,6 +1395,7 @@ bool doSelection(uint32 i, uint32 dwData) {
/**
* @defgroup Exported functions
*/
//@{

/**
* Initialises the MPAL library and opens the .MPC file, which will be used for all queries.
Expand Down Expand Up @@ -2918,6 +2919,8 @@ void mpalDumpDialogs(void) {
unlockDialogs();
}

//@}

} // end of namespace MPAL

} // end of namespace Tony
6 changes: 5 additions & 1 deletion engines/tony/mpal/mpal.h
Expand Up @@ -187,6 +187,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
*
* The following are defines used for simplifying calling the mpalQuery variants
*/
//@{

/**
* Gets the current version of MPAL
Expand Down Expand Up @@ -386,11 +387,12 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
#define mpalQueryDoDialog(nDialog,nGroup) \
mpalQueryDWORD(MPQ_DO_DIALOG, (uint32)(nDialog),(uint32)(nGroup))

//@}

/**
* @defgroup Functions exported to the main game
*/

//@{

/**
* Initializes the MPAL library, and opens an .MPC file, which will be 'used for all queries
Expand Down Expand Up @@ -526,6 +528,8 @@ void lockVar(void);
*/
void unlockVar(void);

//@}

} // end of namespace MPAL

} // end of namespace Tony
Expand Down

0 comments on commit a91553e

Please sign in to comment.