]> git.mxchange.org Git - flightgear.git/blob - Cockpit/hud_dnst.cxx
C++ ifying ...
[flightgear.git] / Cockpit / hud_dnst.cxx
1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4
5 #ifdef HAVE_WINDOWS_H
6 #  include <windows.h>
7 #endif
8 #include <stdlib.h>
9 #include <string.h>
10 #include <Aircraft/aircraft.hxx>
11 #include <Debug/fg_debug.h>
12 #include <Include/fg_constants.h>
13 #include <Math/fg_random.h>
14 #include <Math/mat3.h>
15 #include <Math/polar3d.hxx>
16 #include <Scenery/scenery.hxx>
17 #include <Time/fg_timer.hxx>
18
19
20 #include "hud.hxx"
21      
22 //============ Top of dual_instr_item class member definitions ============
23
24 dual_instr_item ::
25   dual_instr_item ( int          x,
26                     int          y,
27                     UINT         width,
28                     UINT         height,
29                     DBLFNPTR     chn1_source,
30                     DBLFNPTR     chn2_source,
31                     bool         working,
32                     UINT         options ):
33                   instr_item( x, y, width, height,
34                               chn1_source, options, working),
35                   alt_data_source( chn2_source )
36 {
37 }
38
39 dual_instr_item ::
40   dual_instr_item( const dual_instr_item & image) :
41                  instr_item ((instr_item &) image ),
42                  alt_data_source( image.alt_data_source)
43 {
44 }
45
46 dual_instr_item & dual_instr_item ::
47   operator = (const dual_instr_item & rhs )
48 {
49   if( !(this == &rhs)) {
50     instr_item::operator = (rhs);
51     alt_data_source = rhs.alt_data_source;
52     }
53   return *this;
54 }
55
56 // End of hud_dnst.cxx
57