#include <gui_animal.hpp>
Metody publiczne | |
QRectF | boundingRect () const |
Animal * | getAnimal () |
Animal * | getAnimalConst () const |
Animal | getStatAnimal () const |
GUI_Animal (GUI_Scene *scene, Vector2D point) | |
void | newPos (Vector2D &pos) |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
Atrybuty prywatne | |
Animal * | _animal |
qreal | radius |
bool | selected |
Przyjaciele | |
ostream & | operator<< (ostream &Strm, const GUI_Animal &anim) |
istream & | operator>> (istream &Strm, const GUI_Animal &anim) |
Konstruktor zwierzaka, umieszczony na scenie w danym punkcie
QRectF GUI_Animal::boundingRect | ( | ) | const |
Wymagane przez QGrahicsItem (metoda wirtualna)
Animal * GUI_Animal::getAnimal | ( | ) |
Animal * GUI_Animal::getAnimalConst | ( | ) | const |
Animal GUI_Animal::getStatAnimal | ( | ) | const |
void GUI_Animal::newPos | ( | Vector2D & | pos | ) |
Zmienia pozycje zwierzaka
void GUI_Animal::paint | ( | QPainter * | , | |
const QStyleOptionGraphicsItem * | , | |||
QWidget * | ||||
) |
Wymagane przez QGrahicsItem (metoda wirtualna)
ostream& operator<< | ( | ostream & | Strm, | |
const GUI_Animal & | anim | |||
) | [friend] |
istream& operator>> | ( | istream & | Strm, | |
const GUI_Animal & | anim | |||
) | [friend] |
Animal* GUI_Animal::_animal [private] |
qreal GUI_Animal::radius [private] |
bool GUI_Animal::selected [private] |