# /home/samy/kbilliards/src/edgeobject.h

    00001 /***************************************************************************
    00002                           edgeobject.h  -  description
    00003                              -------------------
    00004     begin                : Sat Jan 12 2002
    00005     copyright            : (C) 2002 by Samuele Catuzzi
    00006     email                : samuele_catuzzi@yahoo.it
    00007  ***************************************************************************/
    00008
    00009 /***************************************************************************
    00010  *                                                                         *
    00011  *   This program is free software; you can redistribute it and/or modify  *
    00012  *   it under the terms of the GNU General Public License as published by  *
    00013  *   the Free Software Foundation; either version 2 of the License, or     *
    00014  *   (at your option) any later version.                                   *
    00015  *                                                                         *
    00016  ***************************************************************************/
    00017
    00018 #ifndef EDGEOBJECT_H
    00019 #define EDGEOBJECT_H
    00020
    00021 #include <qcanvas.h>
    00022 #include "ball.h"
    00023 #include "samuele.h"
    00024
    00028 class Ball;
    00029
    00030 class EdgeObject : public  QCanvasSprite {
    00031 public:
    00032         EdgeObject(QCanvasPixmapArray *,QCanvas *,int Z = 10 );
    00033         ~EdgeObject();
    00035   int rtti() const;
    00037   void setLines(double A=0,double B=0,double C=0,double A1=0,double B1=0,double C1=0,double A2=0,double B2=0,double C2=0);
    00045   double EdgeCPrediction(Ball * ball);
    00046 public: //  Public attributes
    00048   QCanvasPixmapArray * images;
    00050   samuele::Vector vect_Dir;
    00052   double a ;
    00054   double b ;
    00056   double c ;
    00058   double a1 ;
    00060   double b1 ;
    00062   double c1 ;
    00064   double a2 ;
    00066   double b2 ;
    00068   double c2 ;
    00070   QString name;
    00072   bool is_a_bouncer;
    00073 };
    00074
    00075 #endif