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

CSimpleSwitch Class Reference

#include <Gauges.h>

Inheritance diagram for CSimpleSwitch:

CGauge CStreamObject CObject CBasicBatterySwitch CBasicMagnetoSwitch CCoveredSwitch CDualSwitch CRockerSwitch CSwitchPairGauge CTurnSwitchGauge CTwoStateELTGauge List of all members.

Public Member Functions

 CSimpleSwitch (void)
virtual int Read (SStream *stream, Tag tag)
virtual void ReadFinished (void)
virtual void Draw (void)
virtual ECursorResult MouseMoved (int x, int y)
virtual EClickResult MouseClick (int x, int y, int buttons)

Protected Member Functions

void DecState (void)
void IncState (void)

Protected Attributes

char bmap_art [64]
SBitmapbmap
char sfxu_wav [64]
char sfxd_wav [64]
int sfxu_tag
int sfxd_tag
char csru_csr [64]
char csrd_csr [64]
Tag csru_tag
Tag csrd_tag
int stat_n
int * stat
int sstr_n
char ** sstr
int orie
int ordr
int indx
bool mmnt
bool mntO

Detailed Description

Definition at line 2574 of file Gauges.h.


Constructor & Destructor Documentation

CSimpleSwitch::CSimpleSwitch void   ) 
 

Definition at line 9004 of file Gauges.cpp.

References bmap, bmap_art, csrd_csr, csrd_tag, csru_csr, csru_tag, indx, mmnt, mntO, ordr, orie, sfxd_tag, sfxd_wav, sfxu_tag, sfxu_wav, sstr, sstr_n, stat, and stat_n.


Member Function Documentation

void CSimpleSwitch::DecState void   )  [protected]
 

Definition at line 9244 of file Gauges.cpp.

References SGlobals::audiomgr, globals, SMessage::id, indx, SMessage::intData, CGauge::mesg, MSG_SETDATA, CAudioManager::PlaySfx(), SendMessage(), CGauge::sfx_source, sfxd_tag, and SMessage::user.

Referenced by MouseClick().

void CSimpleSwitch::Draw void   )  [virtual]
 

Reimplemented from CGauge.

Reimplemented in CBasicBatterySwitch, and CBasicMagnetoSwitch.

Definition at line 9190 of file Gauges.cpp.

References bmap, DrawBitmap(), SMessage::id, indx, CGauge::last_state, CGauge::mesg, MSG_GETDATA, MSG_PROCESSED, SendMessage(), stat, stat_n, CGauge::surf, and SMessage::user.

void CSimpleSwitch::IncState void   )  [protected]
 

Definition at line 9216 of file Gauges.cpp.

References SGlobals::audiomgr, globals, SMessage::id, indx, SMessage::intData, CGauge::mesg, MSG_SETDATA, CAudioManager::PlaySfx(), SendMessage(), CGauge::sfx_source, sfxu_tag, stat, stat_n, and SMessage::user.

Referenced by MouseClick().

EClickResult CSimpleSwitch::MouseClick int  x,
int  y,
int  buttons
[virtual]
 

Reimplemented from CGauge.

Reimplemented in CBasicBatterySwitch, and CBasicMagnetoSwitch.

Definition at line 9318 of file Gauges.cpp.

References DecState(), CGauge::h, IncState(), MOUSE_TRACKING_OFF, orie, and CGauge::w.

ECursorResult CSimpleSwitch::MouseMoved int  x,
int  y
[virtual]
 

Reimplemented from CGauge.

Reimplemented in CSwitchPairGauge, and CRockerSwitch.

Definition at line 9271 of file Gauges.cpp.

References csrd_tag, csru_tag, CURSOR_NOT_CHANGED, CURSOR_WAS_CHANGED, SGlobals::cursormgr, globals, CGauge::h, CGauge::MouseMoved(), orie, CCursorManager::SetCursor(), and CGauge::w.

Referenced by CRockerSwitch::MouseMoved(), and CSwitchPairGauge::MouseMoved().

int CSimpleSwitch::Read SStream stream,
Tag  tag
[virtual]
 

Todo:
Parse user string into SMessage field update

Reimplemented from CGauge.

Reimplemented in CBasicBatterySwitch, CTwoStateELTGauge, CSwitchPairGauge, CDualSwitch, CCoveredSwitch, CCoveredLightButtonGauge, CTurnSwitchGauge, and CRockerSwitch.

Definition at line 9030 of file Gauges.cpp.

References bmap, bmap_art, csrd_csr, csru_csr, globals, gtfo, indx, SGlobals::logWarning, mmnt, mntO, ordr, orie, CGauge::Read(), ReadInt(), ReadString(), sfxd_wav, sfxu_wav, sstr, sstr_n, stat, stat_n, TAG_IGNORED, TAG_READ, TagToString(), and CLogFile::Write().

Referenced by CRockerSwitch::Read(), CTurnSwitchGauge::Read(), CCoveredSwitch::Read(), CDualSwitch::Read(), CSwitchPairGauge::Read(), CTwoStateELTGauge::Read(), and CBasicBatterySwitch::Read().

void CSimpleSwitch::ReadFinished void   )  [virtual]
 

Reimplemented from CGauge.

Reimplemented in CRockerSwitch.

Definition at line 9135 of file Gauges.cpp.

References SGlobals::audiomgr, CCursorManager::BindCursor(), SBitmap::bitmapName, bmap, bmap_art, CAudioManager::CreateSfx(), csrd_csr, csrd_tag, csru_csr, csru_tag, SGlobals::cursormgr, globals, indx, CGauge::last_state, LoadBitmap(), SGlobals::logWarning, SGlobals::pfs, CGauge::ReadFinished(), sfxd_tag, sfxd_wav, sfxu_tag, sfxu_wav, stat, stat_n, and CLogFile::Write().


Member Data Documentation

SBitmap* CSimpleSwitch::bmap [protected]
 

Definition at line 2593 of file Gauges.h.

Referenced by CSimpleSwitch(), CBasicMagnetoSwitch::Draw(), CBasicBatterySwitch::Draw(), Draw(), Read(), and ReadFinished().

char CSimpleSwitch::bmap_art[64] [protected]
 

Definition at line 2592 of file Gauges.h.

Referenced by CSimpleSwitch(), Read(), and ReadFinished().

char CSimpleSwitch::csrd_csr[64] [protected]
 

Definition at line 2603 of file Gauges.h.

Referenced by CSimpleSwitch(), Read(), and ReadFinished().

Tag CSimpleSwitch::csrd_tag [protected]
 

Definition at line 2605 of file Gauges.h.

Referenced by CSimpleSwitch(), MouseMoved(), and ReadFinished().

char CSimpleSwitch::csru_csr[64] [protected]
 

Definition at line 2602 of file Gauges.h.

Referenced by CSimpleSwitch(), Read(), and ReadFinished().

Tag CSimpleSwitch::csru_tag [protected]
 

Definition at line 2604 of file Gauges.h.

Referenced by CSimpleSwitch(), MouseMoved(), and ReadFinished().

int CSimpleSwitch::indx [protected]
 

Definition at line 2614 of file Gauges.h.

Referenced by CSimpleSwitch(), DecState(), CBasicMagnetoSwitch::Draw(), Draw(), IncState(), CBasicMagnetoSwitch::MouseClick(), Read(), ReadFinished(), and CBasicMagnetoSwitch::StopClick().

bool CSimpleSwitch::mmnt [protected]
 

Reimplemented in CDualSwitch.

Definition at line 2615 of file Gauges.h.

Referenced by CSimpleSwitch(), and Read().

bool CSimpleSwitch::mntO [protected]
 

Definition at line 2616 of file Gauges.h.

Referenced by CSimpleSwitch(), and Read().

int CSimpleSwitch::ordr [protected]
 

Definition at line 2613 of file Gauges.h.

Referenced by CSimpleSwitch(), and Read().

int CSimpleSwitch::orie [protected]
 

Reimplemented in CDualSwitch.

Definition at line 2612 of file Gauges.h.

Referenced by CSimpleSwitch(), MouseClick(), MouseMoved(), and Read().

int CSimpleSwitch::sfxd_tag [protected]
 

Definition at line 2599 of file Gauges.h.

Referenced by CSimpleSwitch(), DecState(), CBasicMagnetoSwitch::MouseClick(), CBasicBatterySwitch::MouseClick(), ReadFinished(), and CBasicMagnetoSwitch::StopClick().

char CSimpleSwitch::sfxd_wav[64] [protected]
 

Definition at line 2597 of file Gauges.h.

Referenced by CSimpleSwitch(), Read(), and ReadFinished().

int CSimpleSwitch::sfxu_tag [protected]
 

Definition at line 2598 of file Gauges.h.

Referenced by CSimpleSwitch(), IncState(), CBasicMagnetoSwitch::MouseClick(), CBasicBatterySwitch::MouseClick(), and ReadFinished().

char CSimpleSwitch::sfxu_wav[64] [protected]
 

Definition at line 2596 of file Gauges.h.

Referenced by CSimpleSwitch(), Read(), and ReadFinished().

char** CSimpleSwitch::sstr [protected]
 

Definition at line 2611 of file Gauges.h.

Referenced by CSimpleSwitch(), and Read().

int CSimpleSwitch::sstr_n [protected]
 

Definition at line 2610 of file Gauges.h.

Referenced by CSimpleSwitch(), and Read().

int* CSimpleSwitch::stat [protected]
 

Definition at line 2609 of file Gauges.h.

Referenced by CSimpleSwitch(), Draw(), IncState(), CBasicBatterySwitch::MouseClick(), Read(), and ReadFinished().

int CSimpleSwitch::stat_n [protected]
 

Definition at line 2608 of file Gauges.h.

Referenced by CSimpleSwitch(), Draw(), IncState(), Read(), and ReadFinished().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen