Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

tdrawgettempline Class Reference

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

#include <mapalgorithms.h>

List of all members.

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 49 of file mapalgorithms.h.


Constructor & Destructor Documentation

tdrawgettempline::tdrawgettempline int  _freefields,
GameMap _gamemap
 

Definition at line 30 of file mapalgorithms.cpp.

References gamemap, and tempsum.

virtual tdrawgettempline::~tdrawgettempline  )  [inline, virtual]
 

Definition at line 72 of file mapalgorithms.h.


Member Function Documentation

void tdrawgettempline::putpix8 int  x,
int  y
[virtual]
 

Definition at line 38 of file mapalgorithms.cpp.

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

Referenced by start().

void tdrawgettempline::start int  x1,
int  y1,
int  x2,
int  y2
 

Definition at line 132 of file mapalgorithms.cpp.

References beeline(), fatalError(), getnextfield(), putpix8(), sidenum, winkel(), and winkelcomp().

Referenced by tcomputeview::testfield().

double tdrawgettempline::winkel int  x,
int  y
 

Definition at line 110 of file mapalgorithms.cpp.

References fielddisthalfx, fielddistx, and fielddisty.

Referenced by start().

int tdrawgettempline::winkelcomp double  w1,
double  w2
 

Definition at line 53 of file mapalgorithms.cpp.

References pi.

Referenced by start().


Member Data Documentation

GameMap* tdrawgettempline::gamemap [protected]
 

Definition at line 61 of file mapalgorithms.h.

Referenced by putpix8(), and tdrawgettempline().

int tdrawgettempline::tempsum
 

Definition at line 64 of file mapalgorithms.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:21 2008 for Advanced Strategic Command by  doxygen 1.4.2