My Project
Loading...
Searching...
No Matches
plantsprite.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "image.h"
4
5
class
TextureFilm;
6
class
Plant
;
7
8
class
PlantSprite
:
public
Image{
9
private
:
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
22
public
:
23
PlantSprite
();
24
PlantSprite
(
int
image);
25
26
void
reset
(
Plant
* plant);
27
void
reset
(
int
image);
28
virtual
void
update
();
29
virtual
void
kill
();
30
};
Plant
Definition
plant.h:13
PlantSprite::PlantSprite
PlantSprite()
Definition
plantsprite.cpp:13
PlantSprite::kill
virtual void kill()
Definition
plantsprite.cpp:92
PlantSprite::reset
void reset(Plant *plant)
Definition
plantsprite.cpp:36
PlantSprite::update
virtual void update()
Definition
plantsprite.cpp:56
pd
plantsprite.h
Generated by
1.13.2