[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/games/KWarBots/src
From:       Rodrigo Gonçalves de Oliveira <mdkcore () gmail ! com>
Date:       2010-03-02 14:11:11
Message-ID: 1267539071.190054.19734.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1097950 by rodrigoo:

- Added WaterObject class, with animation (but I don't know hot to draw 'water' :p)

NOTE: Scheduling some improvements on the how *Objects manipulate images


 M  +1 -0      CMakeLists.txt  
 M  +1 -0      battlearea.cpp  
 M  +4 -1      object.h  
 A             waterobject.cpp   [License: GPL (v2+)]
 A             waterobject.h   [License: GPL (v2+)]


--- trunk/playground/games/KWarBots/src/CMakeLists.txt #1097949:1097950
@@ -14,6 +14,7 @@
 	tileobject.cpp
 	blockobject.cpp
 	wallobject.cpp
+	waterobject.cpp
 	terrainobject.cpp
 	map.cpp
 	imageloader.cpp
--- trunk/playground/games/KWarBots/src/battlearea.cpp #1097949:1097950
@@ -26,6 +26,7 @@
 #include "battlearea.h"
 #include "tileobject.h"
 #include "wallobject.h"
+#include "waterobject.h"
 #include "blockobject.h"
 #include "terrainobject.h"
 
--- trunk/playground/games/KWarBots/src/object.h #1097949:1097950
@@ -40,10 +40,13 @@
 
 	Q_SIGNALS: // we can emit some signal, like for a colliding event
 
-	//private slots:
+	public slots:
+		virtual void updateObject(){
+		}
 
 	protected:
 		Animation *m_animation;
+		Frames m_sprites;
 
 	private:
 		QString m_imageFile;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic