1 /*
2 Copyright (C) 2007, 2010 - Bit-Blot
3 
4 This file is part of Aquaria.
5 
6 Aquaria is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 
15 See the GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21 #include "Particles.h"
22 
SpawnParticleData()23 SpawnParticleData::SpawnParticleData()
24 {
25 	suckIndex = -1;
26 	suckStr = 0;
27 
28 	alphaModTimesVel = 0;
29 	randomScale1 = 1;
30 	randomScale2 = 1;
31 	randomAlphaMod1 = 1;
32 	randomAlphaMod2 = 1;
33 	influenced = 0;
34 	spawnLocal = false;
35 	avatarVelocity = 0;
36 	useSpawnRate = false;
37 	counter = 0;
38 	life = 1;
39 	blendType = RenderObject::BLEND_DEFAULT;
40 	spawnRate = 1;
41 	scale = Vector(1,1,1);
42 	width = 64;
43 	height = 64;
44 	fadeAlphaWithLife = false;
45 	color = Vector(1,1,1);
46 	alpha = 1;
47 	randomSpawnRadius = 0;
48 	lastDTDifference = 0;
49 	addAsChild = false;
50 
51 	randomRotationRange = 0;
52 	number = 1;
53 
54 	randomParticleAngleRange = 0;
55 	velocityMagnitude = 1;
56 
57 	calculateVelocityToCenter = false;
58 
59 	randomSpawnRadiusRange = 0;
60 	randomSpawnMod = Vector(1,1);
61 
62 	spawnArea = SPAWN_CIRCLE;
63 	randomVelocityMagnitude = 0;
64 	randomVelocityRange = 360;
65 	//updateMultiplier = 1;
66 	copyParentRotation = 0;
67 	justOne = didOne = false;
68 	flipH = flipV = 0;
69 	spawnTimeOffset = 0;
70 	groupRender = 0;
71 	pauseLevel = 0;
72 	copyParentFlip = 0;
73 	inheritColor = false;
74 	inheritAlpha = false;
75 }
76