background image

6_projectiles = new CCMutableArray;

7

8HelloWorld::~HelloWorld()

9{

10 if (_targets)

11 {

12 _targets->release();

13 _targets = NULL;

14 }

15

16 if (_projectiles)

17 {

18 _projectiles->release();

19 _projectiles = NULL;

20 }

21

22 // cpp don't need to call super dealloc

23 // virtual destructor will do this

24}

25

26HelloWorld::HelloWorld()

27:_targets(NULL)

28,_projectiles(NULL)