blob: a2c500c9c95de70de1459032f2872231793a77d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "simulation/Tools.h"
//#TPT-Directive ToolClass Tool_Heat TOOL_HEAT 0
Tool_Heat::Tool_Heat()
{
Identifier = "DEFAULT_TOOL_HEAT";
Name = "HEAT";
Colour = PIXPACK(0xFFDD00);
Description = "Heats particles";
}
int Tool_Heat::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength)
{
if(!cpart)
return 0;
cpart->temp += strength;
return 1;
}
Tool_Heat::~Tool_Heat() {}
|