Advanced Strategic Command
Public Member Functions | Public Attributes | Protected Attributes | List of all members
tdrawgettempline Class Reference

draws a straight line on the hexagonal map and calls putpix8 for each field. More...

#include <mapalgorithms.h>

Public Member Functions

 tdrawgettempline (int _freefields, GameMap *_gamemap)
 
void start (int x1, int y1, int x2, int y2)
 
virtual void putpix8 (int x, int y)
 
double winkel (int x, int y)
 
int winkelcomp (double w1, double w2)
 
virtual ~tdrawgettempline ()
 

Public Attributes

int tempsum
 

Protected Attributes

GameMapgamemap
 

Detailed Description

draws a straight line on the hexagonal map and calls putpix8 for each field.

Awfully unoptimized!

Definition at line 50 of file mapalgorithms.h.

Constructor & Destructor Documentation

tdrawgettempline::tdrawgettempline ( int  _freefields,
GameMap _gamemap 
)

Definition at line 29 of file mapalgorithms.cpp.

References gamemap, and tempsum.

virtual tdrawgettempline::~tdrawgettempline ( )
inlinevirtual

Definition at line 73 of file mapalgorithms.h.

Member Function Documentation

void tdrawgettempline::putpix8 ( int  x,
int  y 
)
virtual

Definition at line 37 of file mapalgorithms.cpp.

References gamemap, GameMap::getField(), MapField::getjamming(), and tempsum.

Referenced by start().

void tdrawgettempline::start ( int  x1,
int  y1,
int  x2,
int  y2 
)
double tdrawgettempline::winkel ( int  x,
int  y 
)

Definition at line 111 of file mapalgorithms.cpp.

References fielddisthalfx, fielddistx, and fielddisty.

Referenced by start().

int tdrawgettempline::winkelcomp ( double  w1,
double  w2 
)

Definition at line 52 of file mapalgorithms.cpp.

References pi.

Referenced by start().

Member Data Documentation

GameMap* tdrawgettempline::gamemap
protected

Definition at line 62 of file mapalgorithms.h.

Referenced by putpix8(), and tdrawgettempline().

int tdrawgettempline::tempsum

Definition at line 65 of file mapalgorithms.h.

Referenced by putpix8(), tdrawgettempline(), and tcomputeview::testfield().


The documentation for this class was generated from the following files: