-
Notifications
You must be signed in to change notification settings - Fork 0
/
foecommand.h
52 lines (42 loc) · 1.22 KB
/
foecommand.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* $Id: foecommand.h 268 2005-11-10 08:02:20Z mrbrown $
*
* Copyright 2003 Kenta Cho. All rights reserved.
*/
/**
* Foe commands data.
*
* @version $Revision: 268 $
*/
#ifndef FOECOMMAND_H_
#define FOECOMMAND_H_
#include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h"
#include "foe.h"
#define COMMAND_SCREEN_SPD_RATE 512
#define COMMAND_SCREEN_VEL_RATE 512
class FoeCommand : public BulletMLRunner {
public:
FoeCommand(BulletMLParser* parser, struct foe* f);
FoeCommand(BulletMLState* state, struct foe* f);
virtual ~FoeCommand();
virtual float getBulletDirection();
virtual float getAimDirection();
virtual float getBulletSpeed();
virtual float getDefaultSpeed();
virtual float getRank();
virtual void createSimpleBullet(float direction, float speed);
virtual void createBullet(BulletMLState* state, float direction, float speed);
virtual int getTurn();
virtual void doVanish();
virtual void doChangeDirection(float d);
virtual void doChangeSpeed(float s);
virtual void doAccelX(float ax);
virtual void doAccelY(float ay);
virtual float getBulletSpeedX();
virtual float getBulletSpeedY();
private:
struct foe *foe;
};
#endif