CScrub.h 562 Bytes
Newer Older
Gerhard Stein's avatar
Gerhard Stein committed
1 2 3 4 5 6 7 8 9 10
/*
 * CScrub.h
 *
 *  Created on: 05.07.2010
 *      Author: gerstrong
 */

#ifndef CSCRUB_H_
#define CSCRUB_H_

11
#include "engine/vorticon/ai/CCarrier.h"
12

13
class CScrub : public CCarrier
14 15
{
public:
16
	CScrub(CMap *p_map, Uint32 x, Uint32 y);
17
	
18
	void process();
19

20
private:
Gerhard Stein's avatar
Gerhard Stein committed
21
    
22 23 24 25 26 27 28 29 30 31 32
	void walkLeft(int mx, int my);
	void walkDown();
	void walkRight(int mx, int my);
	void walkUp();
	void fall();
	void preparetoFall();

	unsigned char state;

	unsigned char animtimer, dietimer;
	unsigned char walkframe;
33
	int scrubdie_inertia_y;
34
	int fallspeed;
35
};
Gerhard Stein's avatar
Gerhard Stein committed
36 37

#endif /* CSCRUB_H_ */