#include <OSPRITEA.H>
Inheritance diagram for SpriteArray:
Definition at line 13 of file OSPRITEA.H.
<int> initArraySize - the initial size of this array.
Definition at line 24 of file OSPRITEA.CPP.
Definition at line 30 of file OSPRITEA.CPP.
References deinit().
Definition at line 77 of file OSPRITEA.CPP.
References DynArrayB::linkin(), DynArray::recno(), and Sprite::sprite_recno.
Add the sprite into the array in a sorted order.
<Sprite*> spritePtr - pointer to the sprite to be added
Note: it does not call Sprite::init_recno() as it is supposed to be used by disp_sprite_array only and sprites to be added are existing sprites only.
return : <int> - the recno of the newly added sprite in SpriteArray.
Definition at line 95 of file OSPRITEA.CPP.
All firms should be deleted when the system terminated
Chain : delete nation --> delete firm --> delete job --> delete item
Some data is corrupted when the some firms still exist when the system terminated
Reimplemented from DynArray.
Definition at line 51 of file OSPRITEA.CPP.
References NULL.
Referenced by ~SpriteArray().
Definition at line 130 of file OSPRITEA.CPP.
References err_when, DynArray::get_ptr(), and DynArrayB::linkout().
Definition at line 37 of file OSPRITEA.CPP.
References restart_recno.
[inline]
Definition at line 32 of file OSPRITEA.H.
[virtual]
Definition at line 143 of file OSPRITEA.CPP.
References DynArray::get_ptr(), Sprite::process(), and DynArray::size().
Definition at line 15 of file OSPRITEA.H.
Referenced by init().