macros Namespace Reference

Contains generic utility functions that many other places use. More...


Functions

string getPlayerName (u8 playerNum, string playerNames, bool leftPadding=true)
 Parse player names string and return player name for a specific number.


Detailed Description

Contains generic utility functions that many other places use.

This actually began as a debugging namespace, but other global functions have found their way here as well.

Author:
pospi


Function Documentation

string macros::getPlayerName ( u8  playerNum,
string  playerNames,
bool  leftPadding = true 
) [inline]

Parse player names string and return player name for a specific number.

Parameters:
playerNum the player number to retrieve the name for (between 1 and 6)
playerNames the string of player names to interpret
leftPadding if true, will pad player names 1-3 from the right, and names 4-6 from the left.

Definition at line 114 of file macros.h.

Referenced by menuBottom::characterMenu(), menuBottom::charNameNav(), menuBottom::drawStatsFor(), menuGBottom::gameTick(), and menuGBottom::loadBackground().


Generated on Tue Mar 13 23:27:56 2007 for MDuel DS by  doxygen 1.5.1-p1