diff -r 8a21bec5d45f -r e4e7db2435f8 front_processing/src/Smoke_manipulation/vsquare.pde
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/front_processing/src/Smoke_manipulation/vsquare.pde Thu Mar 22 16:00:17 2012 +0100
@@ -0,0 +1,94 @@
+/*
+* This file is part of the TraKERS\Front Processing package.
+*
+* (c) IRI
+*
+* For the full copyright and license information, please view the LICENSE_FRONT
+* file that was distributed with this source code.
+*/
+
+class vsquare {
+ int x;
+ int y;
+ float xvel;
+ float yvel;
+ float col;
+
+ vsquare(int xIn,int yIn) {
+ x = xIn;
+ y = yIn;
+ }
+
+ void addbuffer(int i, int u) {
+ if(i>0 && i0 && u 0) {
+ adj = x - randomGustX;
+ opp = y - randomGustY;
+ dist = sqrt(opp*opp + adj*adj);
+ if(dist < randomGustSize) {
+ if(dist < RES*2) dist = randomGustSize;
+ mod = randomGustSize/dist;
+ xvel += (randomGustMax-randomGust)*randomGustXvel*mod;
+ yvel += (randomGustMax-randomGust)*randomGustYvel*mod;
+ }
+ }
+ xvel *= 0.99;
+ yvel *= 0.98;
+ }
+
+ void addcolour(int amt) {
+ col += amt;
+ if(col > 196) col = 196;
+ }
+
+ void display(int i, int u) {
+ float tcol = 0;
+ if(i>0 && i0 && u