With the amount of time I've been here at GDev.Net you'd think I wouldn't post such a newbie question, but truth is I haven't actually done much learning. So anyway here it goes:
I'm currently reading Game Programming All-In-One. I'm upto the section where I am working on a Monster clone. Not that I'm stuck but I'm wondering why do they use:
Page 225 Lines: 47+
void CGame::ShowSplash (void)
{
m_Console->Clear ();
m_Console->OutputString ("\tWelcome to Monster1.0 \n\n");
I don't really understand
excatly what's going on here.
Earlier m_Console was defined as:
It says according to my book that m_Console is a pointer to ConLib. That being known would that mean that Clear and OutputString are Classes or Functions (which one if I'm right) of ConLib.
For reference it turns out ConLib is a Class which I have deduced from this piece of code:
#include "ConLib.h"
ConLib::ConLib()
{
m_Screen = GetStdHandle (STD_OUTPUT_HANDLE);
m_Keyboard = GetStdHandle (STD_INPUT_HANDLE);
SetTextColor (ConRed | ConGreen | ConBlue);
SetBackgroundColor (0);
}
Can I be helped, or am I doomed to never understand the underworkings of this blasted book!
[edited by - PSWind on January 1, 2003 6:35:58 PM]