Source: easyspriteplane.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          easyspriteplane.h  -  description
                             -------------------
    begin                : Sun Oct 27 2002
    copyright            : (C) 2002 by Vladimir Grichina
    email                : vgrichina@mail.ru
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef EASYSPRITEPLANE_H
#define EASYSPRITEPLANE_H

#include "easysprite.h"
#include 

/**Contains sprites situated in one plane

  *@author Vladimir Grichina
  */

class EasySpritePlane:public EasySprite {
public: 
	EasySpritePlane(int capacity = 32);
	~EasySpritePlane();
  /** Adds a sprite to plane
 */
  void add(EasySprite *sprite);
  /** Increases plane capacity */
  int increaseCapacity();
  /** Returns sprite owned by plane
@param number number of sprite to retun
 */
  EasySprite * getSprite(int number);
	/** Inserts sprite to the the list
@param position position to insert sprite to
 */
  void insert(EasySprite *sprite, int position);

  /** Removes sprite from plane
@param number number of sprite to delete */
  void remove(int number);
  /** Draws the plane on surface
@param surface surface to draw plane to */
  void draw(SDL_Surface *surface);
  /** Does nothing dirty-hack to make compiler not to say it's not implemented abstarct
 */
  void updateRect();
  /** Moves all sprites in plane
@parsm time time passed after last doMove call */
  void doMove(int time);



  /** Number of sprites in plane
 */
  int count;
  /** Current capacity of plane
 */
  int capacity;

protected:
	EasySprite **data;
};

#endif

Generated by: vg on localhost.localdomain on Fri Jan 17 13:05:24 2003, using kdoc 2.0a53.