]> icculus.org git repositories - taylor/freespace2.git/blob - src/helped/helpedline.cpp
Initial revision
[taylor/freespace2.git] / src / helped / helpedline.cpp
1 // HelpEdLine.cpp: implementation of the HelpEdLine class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #include "stdafx.h"
6 #include "helped.h"
7 #include "helpedline.h"
8
9 #ifdef _DEBUG
10 #undef THIS_FILE
11 static char THIS_FILE[]=__FILE__;
12 #define new DEBUG_NEW
13 #endif
14
15 //////////////////////////////////////////////////////////////////////
16 // Construction/Destruction
17 //////////////////////////////////////////////////////////////////////
18
19 HelpEdLine::HelpEdLine()
20 {
21
22 }
23
24 HelpEdLine::~HelpEdLine()
25 {
26
27 }
28
29 HelpEdLine::HelpEdLine(CPoint point_from, CPoint point_to)
30 {
31         // intiliaze start and ending of a line
32         line_start = point_from;
33         line_end = point_to;
34 }
35
36 void HelpEdLine::Draw(CDC *pDC)
37 {
38         // draw the line
39         pDC->MoveTo(line_start);
40         pDC->LineTo(line_end);
41 }