|
INFO702 - TPs
|
An asteroid is a simple shape that moves linearly in some direction. More...
#include <objects.hpp>
Public Member Functions | |
| Asteroid (QColor cok, QColor cko, double speed, double r) | |
| virtual void | advance (int step) override |
Public Member Functions inherited from MasterShape | |
| MasterShape (QColor cok, QColor cko) | |
| void | setGraphicalShape (GraphicalShape *f) |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| virtual QPointF | randomPoint () const override |
| virtual bool | isInside (const QPointF &p) const override |
| virtual QRectF | boundingRect () const override |
| State | currentState () const |
| QColor | currentColor () const |
Protected Attributes | |
| double | _speed |
Protected Attributes inherited from MasterShape | |
| GraphicalShape * | _f |
| State | _state |
| QColor | _cok |
| QColor | _cko |
Additional Inherited Members | |
Public Types inherited from MasterShape | |
| enum | State { Ok , Collision } |
An asteroid is a simple shape that moves linearly in some direction.
Definition at line 61 of file objects.hpp.
| Asteroid::Asteroid | ( | QColor | cok, |
| QColor | cko, | ||
| double | speed, | ||
| double | r | ||
| ) |
Definition at line 163 of file objects.cpp.
|
overridevirtual |
Reimplemented from MasterShape.
Definition at line 173 of file objects.cpp.
|
protected |
Definition at line 67 of file objects.hpp.