about summary refs log tree commit diff
path: root/src/game/client/components/items.h
diff options
context:
space:
mode:
authorChoupom <andycootlapin@hotmail.fr>2011-04-03 10:11:23 +0200
committeroy <Tom_Adams@web.de>2011-04-03 22:57:03 +0200
commit733f0b33905bcd8d2097a302c145707cf29ec0d7 (patch)
treef1c94e3528073eb6b1c0a9bebe32111751588284 /src/game/client/components/items.h
parent7a772f4e2053806286df42b2802f616cd4961441 (diff)
downloadzcatch-733f0b33905bcd8d2097a302c145707cf29ec0d7.tar.gz
zcatch-733f0b33905bcd8d2097a302c145707cf29ec0d7.zip
reimplemented extra projectiles
Diffstat (limited to 'src/game/client/components/items.h')
-rw-r--r--src/game/client/components/items.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/client/components/items.h b/src/game/client/components/items.h
index 17702394..c366b8d9 100644
--- a/src/game/client/components/items.h
+++ b/src/game/client/components/items.h
@@ -6,13 +6,24 @@
 
 class CItems : public CComponent
 {	
+	enum
+	{
+		MAX_EXTRA_PROJECTILES=32,
+	};
+	
+	CNetObj_Projectile aExtraProjectiles[MAX_EXTRA_PROJECTILES];
+	int ExtraProjectilesNum;
+	
 	void RenderProjectile(const CNetObj_Projectile *pCurrent, int ItemID);
 	void RenderPickup(const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent);
 	void RenderFlag(const CNetObj_Flag *pPrev, const CNetObj_Flag *pCurrent, const CNetObj_GameData *pPrevGameData, const CNetObj_GameData *pCurGameData);
 	void RenderLaser(const struct CNetObj_Laser *pCurrent);
 	
 public:
+	virtual void OnReset();
 	virtual void OnRender();
+	
+	void AddExtraProjectile(CNetObj_Projectile *pProj);
 };
 
 #endif