0
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
| |
#pragma once
#include <GL/glut.h>
#include <iostream>
#include <cmath>
class Cell{
public:
int _ID;
float xpos, ypos;
float txpos, typos;
float size;
float nextx, nexty; float addx, addy; float pow, nextpow; float flow;
Cell();
Cell( float xpos, float ypos, float size, int _ID );
void init( float xpos, float ypos, float size, int _ID );
void update();
void draw();
void next( float nx, float ny );
void add( float ax, float ay );
};
|