Code:
class Cat // Begins declaration of class
{ //
public: // Begins public section
Cat(); //
~Cat(); //
void Meow()
{cout << "Meow! \n";} // General functions and so fourth
void Info();
private:
};
That is my class header code for just the cat to start with.
Code:
Cat Espeon;
switch(petChoice) // Depends on the pet of the player, displays a different pet introduction.
{
case 1:
Espeon.Meow();
cout << "Espeon slips into the stable, rubs up against your horses leg and jumps into you saddle pack.\n\n";
Espeon.Meow();
break;
and that is basicly the code for the cat in the source code