From bd9f7d7edf3775f644003887dfa195e9a8b9f54a Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Wed, 26 Mar 2014 03:35:14 +0000 Subject: One more level, fix compile error... --- towernbullet.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'towernbullet.h') diff --git a/towernbullet.h b/towernbullet.h index d3d408c..f138ee8 100644 --- a/towernbullet.h +++ b/towernbullet.h @@ -2737,3 +2737,44 @@ public: rad+=hge->Timer_GetDelta()*1000*delta; } }; +class expSpinner +{ +private: + Bullet *bullets[1000]; + int arms,cnt,lc; + double brk,len,dr,da; + bool active; + bool InBound(vector2d pos) + { + if (pos.x<=-25||pos.x>=825||pos.y<=-25||pos.y>=625) + return false;return true; + } +public: + void Init(int _arms,double _drange,double _drad) + { + arms=_arms;lc=cnt=len=0;dr=_drange;da=_drad;active=true; + } + bool isActive(){return active;} + void Update() + { + brk+=hge->Timer_GetDelta(); + if(brk<0.03)return;brk=0; + bool none=true; + for(int i=0;ibulletaccel=0.002,bullets[i]->limv=2; + } + } +}; -- cgit v1.2.3