From 7b936a31f81bdeb8d8633b15c8f4d421a47bfba0 Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Mon, 9 Jul 2007 13:32:03 +0200
Subject: [PATCH] Simplified animation API.
---
src/graphicalapi.h | 3 +--
src/graphicalsystem.cpp | 2 +-
src/graphicalsystem.h | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/graphicalapi.h b/src/graphicalapi.h
index e8c1550..f6bbffc 100644
--- a/src/graphicalapi.h
+++ b/src/graphicalapi.h
@@ -85,11 +85,10 @@ public:
/**
* Create a movement animation.
* \param sprite The sprite to be animated.
- * \param from The starting square of the animation.
* \param to The destination square.
* \return A newly created animation moving \a sprite between the specified squares.
*/
- virtual AnimationPtr moveAnimation(const NamedSprite& sprite, const Point& from, const Point& to) = 0;
+ virtual AnimationPtr moveAnimation(const NamedSprite& sprite, const Point& to) = 0;
/**
* Create an appear animation.
diff --git a/src/graphicalsystem.cpp b/src/graphicalsystem.cpp
index 988cc56..e8cf318 100644
--- a/src/graphicalsystem.cpp
+++ b/src/graphicalsystem.cpp
@@ -153,7 +153,7 @@ SpritePtr GraphicalSystem::insertPoolSprite(int pool, int index, const AbstractP
}
-AnimationPtr GraphicalSystem::moveAnimation(const NamedSprite& sprite, const Point& from, const Point& to) {
+AnimationPtr GraphicalSystem::moveAnimation(const NamedSprite& sprite, const Point& to) {
return AnimationPtr();
}
diff --git a/src/graphicalsystem.h b/src/graphicalsystem.h
index 92fa0f3..691e5de 100644
--- a/src/graphicalsystem.h
+++ b/src/graphicalsystem.h
@@ -109,7 +109,7 @@ private slots:
*/
virtual SpritePtr insertPoolSprite(int pool, int index, const AbstractPiece* piece);
- virtual AnimationPtr moveAnimation(const NamedSprite& sprite, const Point& from, const Point& to);
+ virtual AnimationPtr moveAnimation(const NamedSprite& sprite, const Point& to);
virtual AnimationPtr appearAnimation(const NamedSprite& sprite);
virtual AnimationPtr disappearAnimation(const NamedSprite& sprite);
public:
--
2.11.4.GIT