/[hs]/Reptiles/animal.h
ViewVC logotype

Contents of /Reptiles/animal.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Mar 28 18:02:13 2003 UTC (16 years, 4 months ago) by jeremyd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
File MIME type: text/plain
Seems to sorta work

1 #ifndef ANIMAL_H
2 #define ANIMAL_H
3
4 #include "rando.h"
5 #include "position.h"
6
7 class Animal {
8 public:
9 Animal();
10 Animal(int x, int y);
11 virtual void Live();
12 virtual void Age();
13 virtual void Die();
14 virtual void Move();
15 virtual Position2d *GetPosition();
16
17 //Must be implemented by derived classes --
18 virtual void Eat() = 0;
19
20 protected:
21 int m_nAge, nTurnsOhneEssen;
22 Position2d myPos;
23 RandGen rando;
24 };
25
26 #endif

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13