blob: 17db8f0dafe446720ee1ace9211c3d08193758e4 (
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
|
#ifndef SIMTOOL_H
#define SIMTOOL_H
#include "simulation/Simulation.h"
#include "graphics/Renderer.h"
#include "simulation/Elements.h"
class Simulation;
struct Particle;
class SimTool
{
public:
char *Identifier;
char *Name;
pixel Colour;
char *Description;
SimTool();
virtual ~SimTool() {}
virtual int Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) { return 0; }
virtual int Start(Simulation * sim, Particle * cpart, int x, int y) { return 0; }
virtual int Click(Simulation * sim, Particle * cpart, int x, int y) { return 0; }
};
#endif
|