Skip to content

Commit

Permalink
TONY: American-ification of English used
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jun 17, 2012
1 parent e36f361 commit b36b666
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 49 deletions.
12 changes: 6 additions & 6 deletions engines/tony/custom.cpp
Expand Up @@ -308,7 +308,7 @@ DECLARE_CUSTOM_FUNCTION(SendTonyMessage)(CORO_PARAM, uint32 dwMessage, uint32 nX
// Alignment
_ctx->text.setAlignType(RMText::HCENTER, RMText::VBOTTOM);

// Colour
// Color
_ctx->text.setColor(0, 255, 0);

// Writes the text
Expand Down Expand Up @@ -427,7 +427,7 @@ DECLARE_CUSTOM_FUNCTION(SendFullscreenMsgStart)(CORO_PARAM, uint32 nMsg, uint32
// Forces the text to disappear in time
_ctx->text.forceTime();

// Colour
// Color
_ctx->text.setColor(255, 255, 255);

// Write the text
Expand Down Expand Up @@ -1511,7 +1511,7 @@ DECLARE_CUSTOM_FUNCTION(CharSendMessage)(CORO_PARAM, uint32 nChar, uint32 dwMess
// Alignment
_ctx->text->setAlignType(RMText::HCENTER, RMText::VBOTTOM);

// Colour
// Color
_ctx->text->setColor(GLOBALS._character[nChar]._r, GLOBALS._character[nChar]._g, GLOBALS._character[nChar]._b);

// Write the text
Expand Down Expand Up @@ -1690,7 +1690,7 @@ DECLARE_CUSTOM_FUNCTION(MCharSendMessage)(CORO_PARAM, uint32 nChar, uint32 dwMes
_ctx->parm = (GLOBALS._mCharacter[nChar]._curGroup * 10) + _vm->_randomSource.getRandomNumber(
GLOBALS._mCharacter[nChar]._numTalks[GLOBALS._mCharacter[nChar]._curGroup] - 1) + 1;

// Try to run the custom function to initialise the speech
// Try to run the custom function to initialize the speech
if (GLOBALS._mCharacter[nChar]._item) {
_ctx->h = mpalQueryDoAction(30, GLOBALS._mCharacter[nChar]._item->mpalCode(), _ctx->parm);
if (_ctx->h != CORO_INVALID_PID_VALUE) {
Expand Down Expand Up @@ -1724,7 +1724,7 @@ DECLARE_CUSTOM_FUNCTION(MCharSendMessage)(CORO_PARAM, uint32 nChar, uint32 dwMes
// Alignment
_ctx->text->setAlignType(RMText::HCENTER, RMText::VBOTTOM);

// Colour
// Color
_ctx->text->setColor(GLOBALS._mCharacter[nChar]._r, GLOBALS._mCharacter[nChar]._g, GLOBALS._mCharacter[nChar]._b);

// Write the text
Expand Down Expand Up @@ -1874,7 +1874,7 @@ DECLARE_CUSTOM_FUNCTION(SendDialogMessage)(CORO_PARAM, uint32 nPers, uint32 nMsg
if (GLOBALS._mCharacter[nPers]._numTexts != 0 && GLOBALS._mCharacter[nPers]._bInTexts) {
GLOBALS._mCharacter[nPers]._numTexts--;
} else {
// Try to run the custom function to initialise the speech
// Try to run the custom function to initialize the speech
_ctx->h = mpalQueryDoAction(30, GLOBALS._mCharacter[nPers]._item->mpalCode(), _ctx->parm);
if (_ctx->h != CORO_INVALID_PID_VALUE)
CORO_INVOKE_2(CoroScheduler.waitForSingleObject, _ctx->h, CORO_INFINITE);
Expand Down
16 changes: 8 additions & 8 deletions engines/tony/font.cpp
Expand Up @@ -67,9 +67,9 @@ void DumpFontBMP(const char *filename, const byte *buf, int nChars, int charX, i
void RMFont::load(const byte *buf, int nChars, int dimx, int dimy, uint32 palResID) {
_letter = new RMGfxSourceBuffer8RLEByte[nChars];

// Initialise the fonts
// Initialize the fonts
for (int i = 0; i < nChars; i++) {
// Initialise the buffer with the letters
// Initialize the buffer with the letters
_letter[i].init(buf + i * (dimx * dimy + 8) + 8, dimx, dimy);
_letter[i].loadPaletteWA(palResID);
}
Expand Down Expand Up @@ -172,7 +172,7 @@ void RMFontColor::setBaseColor(byte r1, byte g1, byte b1) {
int i;
byte pal[768 * 3];

// Check if we are already on the right colour
// Check if we are already on the right color
if (_fontR == r1 && _fontG == g1 && _fontB == b1)
return;

Expand Down Expand Up @@ -219,7 +219,7 @@ void RMFontParla::init(void) {

load(RES_F_PARL, nchars, 20, 20);

// Initialise the f**king table
// Initialize the f**king table
_lDefault = 13;
_hDefault = 18;
Common::fill(&_l2Table[0][0], &_l2Table[0][0] + (256 * 256), '\0');
Expand Down Expand Up @@ -1456,7 +1456,7 @@ void RMFontObj::init(void) {

load(RES_F_OBJ, nchars, 25, 30);

// Initialise the f**king table
// Initialize the f**king table
_lDefault = 26;
_hDefault = 30;
Common::fill(&_l2Table[0][0], &_l2Table[0][0] + (256 * 256), '\0');
Expand Down Expand Up @@ -1767,7 +1767,7 @@ void RMText::initStatics() {
}

RMText::RMText() {
// Default colour: white
// Default color: white
_textR = _textG = _textB = 255;

// Default length
Expand Down Expand Up @@ -1804,7 +1804,7 @@ void RMText::removeThis(CORO_PARAM, bool &result) {


void RMText::writeText(const RMString &text, int nFont, int *time) {
// Initialises the font (only once)
// Initializes the font (only once)
if (_fonts[0] == NULL) {
_fonts[0] = new RMFontParla;
_fonts[0]->init();
Expand All @@ -1830,7 +1830,7 @@ void RMText::writeText(const RMString &text, RMFontColor *font, int *time) {
char *string;
int numlines;

// Set the base colour
// Set the base color
font->setBaseColor(_textR, _textG, _textB);

// Destroy the buffer before starting
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/font.h
Expand Up @@ -224,7 +224,7 @@ class RMText : public RMGfxWoodyBuffer {
// Overloading of the Draw to center the text, if necessary
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);

// Set the base colour
// Set the base color
void setColor(byte r, byte g, byte b) {
_textR = r;
_textG = g;
Expand Down
4 changes: 2 additions & 2 deletions engines/tony/gfxcore.cpp
Expand Up @@ -204,7 +204,7 @@ bool RMGfxSourceBuffer::clip2D(int &x1, int &y1, int &u, int &v, int &width, int


/**
* Initialises a surface by resource Id
* Initializes a surface by resource Id
*
* @param resID Resource ID
* @param dimx Buffer X dimension
Expand Down Expand Up @@ -1870,7 +1870,7 @@ void RMGfxSourceBuffer16::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimi
}

void RMGfxSourceBuffer16::prepareImage(void) {
// Colour space conversion if necessary!
// Color space conversion if necessary!
int i;
uint16 *buf = (uint16 *)_buf;

Expand Down
12 changes: 6 additions & 6 deletions engines/tony/gfxcore.h
Expand Up @@ -272,7 +272,7 @@ class RMGfxClearTask : public RMGfxTask {


/**
* Task that draws a coloured box
* Task that draws a colored box
*/
class RMGfxBox : public RMGfxTaskSetPrior {
protected:
Expand Down Expand Up @@ -312,7 +312,7 @@ class RMGfxSourceBuffer : public virtual RMGfxBuffer, public RMGfxTaskSetPrior {


/**
* 16-bit colour source
* 16-bit color source
*/
class RMGfxSourceBuffer16 : public RMGfxSourceBuffer {
protected:
Expand Down Expand Up @@ -358,7 +358,7 @@ class RMGfxSourceBufferPal : public RMGfxSourceBuffer {


/**
* Buffer source with a 256 colour palette
* Buffer source with a 256 color palette
*/
class RMGfxSourceBuffer8 : public RMGfxSourceBufferPal {
protected:
Expand All @@ -378,7 +378,7 @@ class RMGfxSourceBuffer8 : public RMGfxSourceBufferPal {


/**
* Buffer source with a 256 colour palette, and alpha blending
* Buffer source with a 256 color palette, and alpha blending
*/
class RMGfxSourceBuffer8AB : public RMGfxSourceBuffer8 {
protected:
Expand All @@ -391,7 +391,7 @@ class RMGfxSourceBuffer8AB : public RMGfxSourceBuffer8 {


/**
* Buffer source with a 256 colour palette, RLE compressed
* Buffer source with a 256 color palette, RLE compressed
*/

class RMGfxSourceBuffer8RLE : public virtual RMGfxSourceBuffer8 {
Expand Down Expand Up @@ -528,7 +528,7 @@ class RMGfxSourceBuffer8RLEWordAA : public RMGfxSourceBuffer8RLEWord, public RMG


/**
* Source buffer with 16 colours
* Source buffer with 16 colors
*/
class RMGfxSourceBuffer4 : public RMGfxSourceBufferPal {
public:
Expand Down
10 changes: 5 additions & 5 deletions engines/tony/gfxengine.cpp
Expand Up @@ -497,21 +497,21 @@ void RMGfxEngine::init() {
// Create the freeze event
_csMainLoop = g_system->createMutex();

// Initialise the IRQ function for items for MPAL
// Initialize the IRQ function for items for MPAL
GLOBALS._gfxEngine = this;
mpalInstallItemIrq(itemIrq);

// Initialise the input
// Initialize the input
_input.init();

// Initialise the mouse pointer
// Initialize the mouse pointer
_point.init();

// Initialise Tony
// Initialize Tony
_tony.init();
_tony.linkToBoxes(&_vm->_theBoxes);

// Initialise the inventory and the interface
// Initialize the inventory and the interface
_inv.init();
_inter.init();

Expand Down
2 changes: 1 addition & 1 deletion engines/tony/gfxengine.h
Expand Up @@ -86,7 +86,7 @@ class RMGfxEngine {
// Draw the next frame
void doFrame(CORO_PARAM, bool bDrawLocation);

// Initialises the graphics engine
// Initializes the graphics engine
void init();

// Closes the graphics engine
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/inventory.cpp
Expand Up @@ -99,7 +99,7 @@ void RMInventory::init(void) {

assert(res.isValid());

// Initialise the MPAL inventory item by reading it in.
// Initialize the MPAL inventory item by reading it in.
_items[i]._icon.setInitCurPattern(false);
ds.openBuffer(res);
ds >> _items[i]._icon;
Expand Down
10 changes: 5 additions & 5 deletions engines/tony/loc.cpp
Expand Up @@ -614,7 +614,7 @@ void RMItem::readFromStream(RMDataStream &ds, bool bLOX) {
_patterns[i].readFromStream(ds, false);
}

// Initialise the current pattern
// Initialize the current pattern
if (_bInitCurPattern)
setPattern(mpalQueryItemPattern(_mpalCode));

Expand Down Expand Up @@ -2051,11 +2051,11 @@ bool RMLocation::load(RMDataStream &ds) {
ds >> dimx >> dimy;
_curScroll.set(0, 0);

// Read the colour mode
// Read the color mode
ds >> cm;
_cmode = (RMColorMode)cm;

// Initialise the source buffer and read the location
// Initialize the source buffer and read the location
switch (_cmode) {
case CM_256:
_buf = new RMGfxSourceBuffer8;
Expand All @@ -2070,7 +2070,7 @@ bool RMLocation::load(RMDataStream &ds) {
break;
};

// Initialise the surface, loading the palette if necessary
// Initialize the surface, loading the palette if necessary
_buf->init(ds, dimx, dimy, true);

// Check the size of the location
Expand Down Expand Up @@ -2117,7 +2117,7 @@ bool RMLocation::loadLOX(RMDataStream &ds) {
_cmode = CM_65K;
_buf = new RMGfxSourceBuffer16;

// Initialise the surface, loading in the palette if necessary
// Initialize the surface, loading in the palette if necessary
_buf->init(ds, dimx, dimy, true);

// Number of items
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/loc.h
Expand Up @@ -42,7 +42,7 @@ namespace Tony {
\****************************************************************************/

/**
* Valid colour modes
* Valid color modes
*/
typedef enum {
CM_256,
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/mpal/loadmpc.cpp
Expand Up @@ -334,7 +334,7 @@ static const byte *parseDialog(const byte *lpBuf, LPMPALDIALOG lpmdDialog) {
* data of the item.
* @returns Pointer to the buffer after the item, or NULL on failure.
* @remarks It's necessary that the structure that is passed has been
* completely initialised to 0 beforehand.
* completely initialized to 0 beforehand.
*/
static const byte *parseItem(const byte *lpBuf, LPMPALITEM lpmiItem) {
byte len;
Expand Down
4 changes: 2 additions & 2 deletions engines/tony/mpal/mpal.cpp
Expand Up @@ -838,7 +838,7 @@ void LocationPollThread(CORO_PARAM, const void *param) {

CORO_BEGIN_CODE(_ctx);

/* Initialise data pointers */
/* Initialize data pointers */
_ctx->MyActions = NULL;
_ctx->MyThreads = NULL;

Expand Down Expand Up @@ -1404,7 +1404,7 @@ bool doSelection(uint32 i, uint32 dwData) {
//@{

/**
* Initialises the MPAL library and opens the .MPC file, which will be used for all queries.
* Initializes the MPAL library and opens the .MPC file, which will be used for all queries.
*
* @param lpszMpcFileName Name of the MPC file
* @param lpszMprFileName Name of the MPR file
Expand Down
14 changes: 7 additions & 7 deletions engines/tony/tony.cpp
Expand Up @@ -107,7 +107,7 @@ Common::Error TonyEngine::run() {
}

/**
* Initialise the game
* Initialize the game
*/
Common::ErrorCode TonyEngine::init() {
if (isCompressed()) {
Expand Down Expand Up @@ -135,10 +135,10 @@ Common::ErrorCode TonyEngine::init() {
// Reset the scheduler
CoroScheduler.reset();

// Initialise the graphics window
// Initialize the graphics window
_window.init();

// Initialise the function list
// Initialize the function list
Common::fill(_funcList, _funcList + 300, (LPCUSTOMFUNCTION)NULL);
initCustomFunctionMap();

Expand All @@ -151,17 +151,17 @@ Common::ErrorCode TonyEngine::init() {
if (!mpalInit("ROASTED.MPC", "ROASTED.MPR", _funcList, _funcListStrings))
return Common::kUnknownError;

// Initialise the update resources
// Initialize the update resources
_resUpdate.init("ROASTED.MPU");

// Initialise the music
// Initialize the music
initMusic();

// Initialise the voices database
// Initialize the voices database
if (!openVoiceDatabase())
return Common::kReadingFailed;

// Initialise the boxes
// Initialize the boxes
_theBoxes.init();

// Link to the custom graphics engine
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/tonychar.h
Expand Up @@ -362,7 +362,7 @@ class RMTony : public RMCharacter {
static void initStatics();
RMTony();

// Initialise Tony
// Initialize Tony
void init(void);

// Free all memory
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/utils.h
Expand Up @@ -293,7 +293,7 @@ class RMRect {
bool operator==(const RMRect &rc);
bool operator!=(const RMRect &rc);

// Normalise
// Normalize
void normalizeRect();

// Point in rect
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/window.cpp
Expand Up @@ -49,7 +49,7 @@ RMWindow::~RMWindow() {
}

/**
* Initialises the graphics window
* Initializes the graphics window
*/
void RMWindow::init() {
Graphics::PixelFormat pixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0);
Expand Down

0 comments on commit b36b666

Please sign in to comment.