summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/particle.h b/src/particle.h
index af0caf21..008c343b 100644
--- a/src/particle.h
+++ b/src/particle.h
@@ -1,32 +1,30 @@
/*
* The Mana World
- * Copyright 2006 The Mana World Development Team
+ * Copyright (C) 2006 The Mana World Development Team
*
* This file is part of The Mana World.
*
- * The Mana World is free software; you can redistribute it and/or modify
+ * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
- * The Mana World is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with The Mana World; if not, write to the Free Software
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _PARTICLE_H
-#define _PARTICLE_H
+#ifndef PARTICLE_H
+#define PARTICLE_H
#include <list>
#include <string>
-#include <guichan/color.hpp>
-
#include "guichanfwd.h"
#include "sprite.h"
#include "vector.h"
@@ -128,14 +126,13 @@ class Particle : public Sprite
/**
* Sets the position in 3 dimensional space in pixels relative to map.
*/
- void setPosition(float x, float y, float z)
- { mPos.x = x; mPos.y = y; mPos.z = z; }
+ void moveTo(const Vector &pos)
+ { moveBy (pos - mPos);}
/**
* Sets the position in 2 dimensional space in pixels relative to map.
*/
- void setPosition(float x, float y)
- { mPos.x = x; mPos.y = y; }
+ void moveTo(float x, float y);
/**
* Returns the particle position.
@@ -146,13 +143,7 @@ class Particle : public Sprite
/**
* Changes the particle position relative
*/
- void moveBy(float x, float y, float z)
- { mPos.x += x; mPos.y += y; mPos.z += z; }
-
- void moveChildren(Vector change);
-
- void moveBy (Vector change)
- { mPos += change; }
+ void moveBy (const Vector &change);
/**
* Sets the time in game ticks until the particle is destroyed.