diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-09 23:49:43 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-09 23:49:43 +0800 |
commit | c108631ffb580cfed1e92b1a0713e11d8dcbdddd (patch) | |
tree | 1dabb1aa8f5cc68367f490b580698475aabca449 /src/core/bullet.hpp | |
parent | d3b7682aedf3083bbb3b6ed17b226b97d0171c15 (diff) | |
download | bullet-lab-remix-c108631ffb580cfed1e92b1a0713e11d8dcbdddd.tar.xz |
Suffering from object slicing (?)...
However a test program doesn't...
I am really puzzled.
Diffstat (limited to 'src/core/bullet.hpp')
-rw-r--r-- | src/core/bullet.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/bullet.hpp b/src/core/bullet.hpp index f3dd9f2..d8f275e 100644 --- a/src/core/bullet.hpp +++ b/src/core/bullet.hpp @@ -15,18 +15,20 @@ public: bool extborder,invincible; //extborder: true=not removed if out of screen. //invincible: true=not removed if collided with player or in range of CLR. - bool exist,addblend; + bool exist,addblend,special; int attrd[8]; double attrf[8]; TColors basecolor; DWORD rendercolor; - virtual void init(...); + virtual void init(char fstarg,...); virtual void update(); virtual void render(); virtual ~bulletBase(); }; class bulletBonus:public bulletBase { +public: + void init(char fstarg,...)override; void update()override; }; class bulletManager @@ -62,7 +64,7 @@ public: { //stub... int ptr=allocBullet<T>(); - bullets[ptr]->init(); + bullets[ptr]->init(0); return ptr; } void updateBullet(); |