|
CSE 335 Project
CSE335
|
#include <Bulbasaur.h>
Inherits CAnimal.
Public Types | |
| enum | Skills { Tackle, SeedBomb } |
| Types of animal skills. | |
Public Member Functions | |
| void | ObtainBulbasaurInformation () |
| virtual void | DisplayAnimal () |
| virtual int | NumLegs () const |
Public Member Functions inherited from CAnimal | |
| CAnimal () | |
| virtual | ~CAnimal () |
Static Public Attributes | |
| static const int | NumBulbasaurLegs = 4 |
| Number of legs for a Bulbasaur. | |
Private Attributes | |
| std::string | mName |
| The Bulbasaur's name. | |
| double | mWeight = 0 |
| Weight of the Bulbasaur. | |
| int | mCandy = 0 |
| Candy eaten. | |
| Skills | mSkill = Tackle |
| Skill. | |
Class that implements a Bulbasaur
|
virtual |
Display the Bulbasaur.
This is a virtual function that will be called for this specific animal type.
Reimplemented from CAnimal.
|
inlinevirtual |
How many legs does this animal have?
Reimplemented from CAnimal.
| void CBulbasaur::ObtainBulbasaurInformation | ( | ) |
Obtain information about this Bulbasaur.