
Definition at line 48 of file arena.cc.
Public Member Functions | |
| void | render (QPainter &, LockedCore &) |
| void | renderBot (QPainter &, LockedCore &) |
| QPointF | cToA (Point) |
| QPointF | botPosF () |
| QPoint | botPosPx () |
| void | drawCircle (QPainter &, const IObject &) |
Public Attributes | |
| Arena * | arena |
| CoreSync * | cs |
| QTimer | timer |
| unsigned | ticks |
| QSizeF | envSize |
| qreal | botSize |
| qreal | zoomRatio |
| Position | botPosition |
| QPointF | botLastPosition |
| BotPath | botPath |
| CoreInfo | coreInfo |
| bool | drawSurface |
| void render | ( | QPainter & | painter, | |
| LockedCore & | core | |||
| ) |
Definition at line 191 of file arena.cc.
References Position::angle, botPath, botPosition, cToA(), drawCircle(), BotPath::drawPath(), envPenWidth, envSize, and renderBot().
Referenced by Arena::paintEvent().


| void renderBot | ( | QPainter & | painter, | |
| LockedCore & | core | |||
| ) |
Definition at line 226 of file arena.cc.
References botPenWidth, IObject::Size(), and ticks.
Referenced by render().


| QPointF cToA | ( | Point | p | ) |
| QPointF botPosF | ( | ) |
Definition at line 286 of file arena.cc.
References botPosition, and cToA().
Referenced by Arena::Arena(), and Arena::paintEvent().


| QPoint botPosPx | ( | ) |
Definition at line 289 of file arena.cc.
References arena, botLastPosition, envPenWidth, and zoomRatio.
Referenced by Arena::botPosChanged(), and Arena::zoom().
| void drawCircle | ( | QPainter & | painter, | |
| const IObject & | cObj | |||
| ) |
Definition at line 252 of file arena.cc.
References cToA(), drawSurface, objPenWidth, IObject::Position(), and IObject::Size().
Referenced by render().


| QTimer timer |
| unsigned ticks |
Definition at line 52 of file arena.cc.
Referenced by Arena::animate(), Arena::Arena(), and renderBot().
| QSizeF envSize |
Definition at line 53 of file arena.cc.
Referenced by Arena::Arena(), Arena::envSize(), render(), and Arena::zoom().
| qreal botSize |
| qreal zoomRatio |
Definition at line 55 of file arena.cc.
Referenced by botPosPx(), Arena::botSize(), Arena::paintEvent(), and Arena::zoom().
Definition at line 56 of file arena.cc.
Referenced by Arena::Arena(), botPosF(), Arena::paintEvent(), and render().
| QPointF botLastPosition |
Definition at line 57 of file arena.cc.
Referenced by Arena::Arena(), Arena::botPosChanged(), botPosPx(), and Arena::paintEvent().
Definition at line 58 of file arena.cc.
Referenced by Arena::Arena(), Arena::botPosChanged(), render(), and Arena::setShrinkPathEnabled().
Definition at line 59 of file arena.cc.
Referenced by Arena::Arena(), Arena::coreInfo(), and Arena::paintEvent().
| bool drawSurface |
Definition at line 60 of file arena.cc.
Referenced by Arena::Arena(), drawCircle(), and Arena::setDrawSurfaceEnabled().
1.5.4