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

CSimpleInOutStateSwitch Class Reference

#include <Gauges.h>

Inheritance diagram for CSimpleInOutStateSwitch:

CBitmapGauge CGauge CStreamObject CObject CLitInOutSwitch List of all members.

Public Member Functions

 CSimpleInOutStateSwitch (void)
virtual ~CSimpleInOutStateSwitch (void)
int Read (SStream *stream, Tag tag)
virtual void ReadFinished (void)
virtual void Draw (void)
virtual EClickResult MouseClick (int x, int y, int buttons)

Protected Attributes

char sbmp_art [64]
SBitmapsbmp
int onvl
int ofvl
bool stat
char onht [64]
char ofht [64]
char onsf_wav [64]
char ofsf_wav [64]
int onsf_tag
int ofsf_tag
char sstr_off [64]
char sstr_on [64]
bool mmnt

Detailed Description

Definition at line 2523 of file Gauges.h.


Constructor & Destructor Documentation

CSimpleInOutStateSwitch::CSimpleInOutStateSwitch void   ) 
 

Definition at line 9353 of file Gauges.cpp.

References GAUGE_SIMPLE_IN_OUT, mmnt, ofht, ofsf_tag, ofsf_wav, ofvl, onht, onsf_tag, onsf_wav, onvl, sbmp, sbmp_art, sstr_off, sstr_on, stat, and CGauge::type.

CSimpleInOutStateSwitch::~CSimpleInOutStateSwitch void   )  [virtual]
 

Definition at line 9371 of file Gauges.cpp.

References FreeBitmap(), and sbmp.


Member Function Documentation

void CSimpleInOutStateSwitch::Draw void   )  [virtual]
 

Reimplemented from CBitmapGauge.

Definition at line 9482 of file Gauges.cpp.

References DrawBitmap(), SMessage::id, CGauge::mesg, MSG_GETDATA, MSG_PROCESSED, ofvl, onvl, sbmp, SendMessage(), stat, CGauge::surf, and SMessage::user.

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

Reimplemented from CGauge.

Definition at line 9504 of file Gauges.cpp.

References SGlobals::audiomgr, globals, HW_SWITCH, SMessage::id, SMessage::intData, CGauge::mesg, MOUSE_TRACKING_OFF, MSG_SETDATA, ofsf_tag, ofvl, onsf_tag, onvl, CAudioManager::PlaySfx(), SendMessage(), CGauge::sfx_source, stat, and SMessage::user.

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

Todo:
Parse user string into SMessage field update

Reimplemented from CBitmapGauge.

Reimplemented in CLitInOutSwitch.

Definition at line 9379 of file Gauges.cpp.

References globals, SGlobals::logWarning, mmnt, ofht, ofsf_wav, ofvl, onht, onsf_wav, onvl, CBitmapGauge::Read(), ReadInt(), ReadString(), sbmp, sbmp_art, sstr_off, sstr_on, stat, TAG_IGNORED, TAG_READ, TagToString(), and CLogFile::Write().

Referenced by CLitInOutSwitch::Read().

void CSimpleInOutStateSwitch::ReadFinished void   )  [virtual]
 

Reimplemented from CBitmapGauge.

Definition at line 9455 of file Gauges.cpp.

References SGlobals::audiomgr, SBitmap::bitmapName, CAudioManager::CreateSfx(), globals, LoadBitmap(), ofsf_tag, ofsf_wav, onsf_tag, onsf_wav, SGlobals::pfs, CGauge::ReadFinished(), sbmp, and sbmp_art.


Member Data Documentation

bool CSimpleInOutStateSwitch::mmnt [protected]
 

Definition at line 2552 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), and Read().

char CSimpleInOutStateSwitch::ofht[64] [protected]
 

Definition at line 2543 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), and Read().

int CSimpleInOutStateSwitch::ofsf_tag [protected]
 

Definition at line 2548 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), MouseClick(), and ReadFinished().

char CSimpleInOutStateSwitch::ofsf_wav[64] [protected]
 

Definition at line 2547 of file Gauges.h.

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

int CSimpleInOutStateSwitch::ofvl [protected]
 

Definition at line 2540 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), Draw(), MouseClick(), and Read().

char CSimpleInOutStateSwitch::onht[64] [protected]
 

Definition at line 2542 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), and Read().

int CSimpleInOutStateSwitch::onsf_tag [protected]
 

Definition at line 2548 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), MouseClick(), and ReadFinished().

char CSimpleInOutStateSwitch::onsf_wav[64] [protected]
 

Definition at line 2546 of file Gauges.h.

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

int CSimpleInOutStateSwitch::onvl [protected]
 

Definition at line 2539 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), Draw(), MouseClick(), and Read().

SBitmap* CSimpleInOutStateSwitch::sbmp [protected]
 

Definition at line 2538 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), Draw(), Read(), ReadFinished(), and ~CSimpleInOutStateSwitch().

char CSimpleInOutStateSwitch::sbmp_art[64] [protected]
 

Definition at line 2537 of file Gauges.h.

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

char CSimpleInOutStateSwitch::sstr_off[64] [protected]
 

Definition at line 2550 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), and Read().

char CSimpleInOutStateSwitch::sstr_on[64] [protected]
 

Definition at line 2551 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), and Read().

bool CSimpleInOutStateSwitch::stat [protected]
 

Definition at line 2541 of file Gauges.h.

Referenced by CSimpleInOutStateSwitch(), Draw(), MouseClick(), and Read().


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