#include <SpaceOrg.h>
Collaboration diagram for SpaceOrg:

Public Member Functions | |
| SpaceOrg (float x_size, float y_size, float res, int no_segments_cull) | |
| ~SpaceOrg (void) | |
| void | putSprite (Sprite *sprite, unsigned int index) |
| int | delSprite (Sprite *sprite, unsigned int index) |
| int | putTransparent (Sprite *sprite, unsigned int &index) |
| void | updateSpritePos (Sprite *sprite, unsigned int &index) |
| std::list< Sprite * > * | getSprites (unsigned int &index, int xoffset, int yoffset) |
| std::list< Sprite * > * | getSprites (float x_pos, float y_pos) |
| void | getIndexForPos (float x_pos, float y_pos, unsigned int &index) |
| void | draw (void) |
| int | getIndexForSprite (Sprite *sprite, int *index_x, int *index_y) |
Protected Member Functions | |
| unsigned int | coord2Index (float x, float y) |
| int | indexGetX (unsigned int index) |
| int | indexGetY (unsigned int index) |
| bool | indexIsSolid (unsigned int index) |
| void | setCullArea (int *check_start_x, int *check_start_y, int *check_stop_x, int *check_stop_y) |
Protected Attributes | |
| space_segment_t ** | space |
| float | size_x |
| float | size_y |
| float | resolution |
| int | cull_segments |
| unsigned int | squares_x |
| unsigned int | squares_y |
| SpaceOrg::SpaceOrg | ( | float | x_size, | |
| float | y_size, | |||
| float | res, | |||
| int | no_segments_cull | |||
| ) |
| SpaceOrg::~SpaceOrg | ( | void | ) |
| unsigned int SpaceOrg::coord2Index | ( | float | x, | |
| float | y | |||
| ) | [inline, protected] |
| int SpaceOrg::delSprite | ( | Sprite * | sprite, | |
| unsigned int | index | |||
| ) |
| void SpaceOrg::draw | ( | void | ) |
| void SpaceOrg::getIndexForPos | ( | float | x_pos, | |
| float | y_pos, | |||
| unsigned int & | index | |||
| ) |
| int SpaceOrg::getIndexForSprite | ( | Sprite * | sprite, | |
| int * | index_x, | |||
| int * | index_y | |||
| ) |
| std::list<Sprite*>* SpaceOrg::getSprites | ( | float | x_pos, | |
| float | y_pos | |||
| ) |
| std::list<Sprite*>* SpaceOrg::getSprites | ( | unsigned int & | index, | |
| int | xoffset, | |||
| int | yoffset | |||
| ) |
| int SpaceOrg::indexGetX | ( | unsigned int | index | ) | [inline, protected] |
| int SpaceOrg::indexGetY | ( | unsigned int | index | ) | [inline, protected] |
| bool SpaceOrg::indexIsSolid | ( | unsigned int | index | ) | [inline, protected] |
| void SpaceOrg::putSprite | ( | Sprite * | sprite, | |
| unsigned int | index | |||
| ) |
| int SpaceOrg::putTransparent | ( | Sprite * | sprite, | |
| unsigned int & | index | |||
| ) |
| void SpaceOrg::setCullArea | ( | int * | check_start_x, | |
| int * | check_start_y, | |||
| int * | check_stop_x, | |||
| int * | check_stop_y | |||
| ) | [protected] |
| void SpaceOrg::updateSpritePos | ( | Sprite * | sprite, | |
| unsigned int & | index | |||
| ) |
int SpaceOrg::cull_segments [protected] |
float SpaceOrg::resolution [protected] |
float SpaceOrg::size_x [protected] |
float SpaceOrg::size_y [protected] |
space_segment_t** SpaceOrg::space [protected] |
unsigned int SpaceOrg::squares_x [protected] |
unsigned int SpaceOrg::squares_y [protected] |
1.4.7