Codebase list pipenightdreams / 5b6ec27b-d0f6-4ff4-9390-d1182c4661e5/main src / paper.h
5b6ec27b-d0f6-4ff4-9390-d1182c4661e5/main

Tree @5b6ec27b-d0f6-4ff4-9390-d1182c4661e5/main (Download .tar.gz)

paper.h @5b6ec27b-d0f6-4ff4-9390-d1182c4661e5/mainraw · history · blame

/***************************************************************************
                          paper.h  -  description
                             -------------------
    begin                : Fri Jan 18 2002
    copyright            : (C) 2002 by Waldemar Baraldi
    email                : baraldi@lacasilla.com.ar
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 PAPER_H
#define PAPER_H

#include "animatedcanvas.h"

class Sprite;
class ImageManager;

class Paper: public AnimatedCanvas{

  public:
    static const int DeltaY;
    static const int NFrames;

    enum PaperColor {Red, Green, Blue};

    Paper(int maxY, PaperColor color, ImageManager * im);
    virtual ~Paper();

    int width();

    int height();

    void paint(VideoManager * vm);

    void tick();

  protected:

	  Sprite * sprite;
	
	  int frame;
	
	  int maxY;
	
	  int l_width;
	
	  int l_height;
};

#endif