My Project
 
Loading...
Searching...
No Matches
plantsprite.h
Go to the documentation of this file.
1#pragma once
2
3#include "image.h"
4
5class TextureFilm;
6class Plant;
7
8class PlantSprite :public Image{
9private:
10 static const float DELAY;
11
12 enum State {
13 GROWING, NORMAL, WITHERING
14 };
15 State state;
16 float time;
17
18 static TextureFilm* frames;
19
20 int pos;
21
22public:
24 PlantSprite(int image);
25
26 void reset(Plant* plant);
27 void reset(int image);
28 virtual void update();
29 virtual void kill();
30};
Definition plant.h:13
PlantSprite()
Definition plantsprite.cpp:13
virtual void kill()
Definition plantsprite.cpp:92
void reset(Plant *plant)
Definition plantsprite.cpp:36
virtual void update()
Definition plantsprite.cpp:56