I have a base class Enemy and a derived class Fly (Fly is a type of enemy). Enemy has a static float pointer called spiderTrans:
static float *spiderTrans;
In my main, I create a spider and a fly and try to assign a value to the fly's spiderTrans:
spider = new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.