blob: 784b4ccb816275c416d92431dafe7fe461bc49ad (
plain)
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
|
#ifndef _PARTICLE_H
#define _PARTICLE_H
#include "arrow.h"
#include "tail.h"
#include "bait.h"
class Firefly : public Arrow
{
public:
Bait *bait; // the bait I'm after
Tail *tail; // my pretty tail
double age; // how long I've been alive
// Firefly(
// the bait I'm after,
// where to put me,
// plus/minus this amount)
Firefly(Bait *_bait, Vec3f ctr, double spread);
virtual ~Firefly();
// draw me and my tail
virtual void draw();
// let t seconds elapse
virtual void elapse(double t);
// calculate acceleration
void calc_accel();
// change colors based on parameters
void set_color();
};
#endif // Firefly.h
|