-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfoecommand.h.float
69 lines (59 loc) · 1.9 KB
/
foecommand.h.float
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* $Id: foecommand.h,v 1.1.1.1 2003/03/16 07:03:49 kenta Exp $
*
* Copyright 2003 Kenta Cho. All rights reserved.
*/
/**
* Foe commands data.
*
* @version $Revision: 1.1.1.1 $
*/
#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();
//senquack - complete conversion to floats:
// virtual double getBulletDirection();
// virtual double getAimDirection();
// virtual double getBulletSpeed();
// virtual double getDefaultSpeed();
// virtual double getRank();
// virtual void createSimpleBullet(double direction, double speed);
// virtual void createBullet(BulletMLState* state, double direction, double speed);
// virtual int getTurn();
// virtual void doVanish();
//
// virtual void doChangeDirection(double d);
// virtual void doChangeSpeed(double s);
// virtual void doAccelX(double ax);
// virtual void doAccelY(double ay);
// virtual double getBulletSpeedX();
// virtual double getBulletSpeedY();
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