#include <render_line.h>
Public Member Functions | |
RenderLine (const CoordXY &p1, const CoordXY &p2, const RenderColor &color, int nPositionZ=0) | |
virtual void | modify (const GameState &state, IRenderWindow *pRenderWindow) override |
virtual bool | canDraw (const GameState &state) override |
virtual void | draw (SDL_Renderer *renderer) override |
const CoordXY & | getAbsoluteCoord1 () |
const CoordXY & | getAbsoluteCoord2 () |
const CoordXY & | getCoord1 () |
const CoordXY & | getCoord2 () |
void | updateAbsoluteCoords (const CoordXY &p1, const CoordXY &p2) |
Public Member Functions inherited from RenderObject | |
RenderObject (int nPositionZ) | |
virtual | ~RenderObject () |
int | getPositionZ () |
bool | isDestroyed () |
void | destroy () |
int | randomNoise () |
Private Attributes | |
CoordXY | m_startCoord1 |
CoordXY | m_startCoord2 |
CoordXY | m_coord1 |
CoordXY | m_coord2 |
RenderColor | m_color |
Additional Inherited Members | |
Protected Attributes inherited from RenderObject | |
bool | m_bDestroyed |
RenderLine::RenderLine | ( | const CoordXY & | p1, |
const CoordXY & | p2, | ||
const RenderColor & | color, | ||
int | nPositionZ = 0 |
||
) |
|
overridevirtual |
Implements RenderObject.
|
overridevirtual |
Implements RenderObject.
const CoordXY & RenderLine::getAbsoluteCoord1 | ( | ) |
const CoordXY & RenderLine::getAbsoluteCoord2 | ( | ) |
const CoordXY & RenderLine::getCoord1 | ( | ) |
const CoordXY & RenderLine::getCoord2 | ( | ) |
|
overridevirtual |
Reimplemented from RenderObject.
|
private |
|
private |
|
private |
|
private |
|
private |