Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / logic / logic_editor_dll / Counter.h
blobe63ab9a279ecc8d2713254d57e03b229077b64de
1 // Counter.h: interface for the CCounter class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_COUNTER_H__0C20D48D_E90E_4B32_B53C_2C91974411DB__INCLUDED_)
6 #define AFX_COUNTER_H__0C20D48D_E90E_4B32_B53C_2C91974411DB__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 namespace NLLOGIC
14 class CLogicCounter;
17 /**
18 * Classe CCounter : represent counters in .LOGIC files
20 class CCounter
22 public:
23 CCounter( const CString &name = "");
25 virtual ~CCounter();
27 inline const CString &name() const { return m_sName; }
28 inline const CString &way() const { return m_sWay; }
29 inline const CString &mode() const { return m_sMode; }
30 inline long upperLimit() const { return m_nUpperLimit; }
31 inline long lowerLimit() const { return m_nLowerLimit; }
33 inline void name( const CString &name) { m_sName = name; }
34 inline void way( const CString &way) { m_sWay = way; }
35 inline void mode( const CString &mode) { m_sMode = mode; }
36 inline void lowerLimit( long min) { m_nLowerLimit = min; }
37 inline void upperLimit( long max) { m_nUpperLimit = max; }
39 //attributes
40 public:
41 /// counter name
42 CString m_sName;
44 /// mode (shuttle/loop/stop_on_arrival)
45 CString m_sMode;
47 /// way (up/down)
48 CString m_sWay;
50 /// lower limit
51 long m_nLowerLimit;
53 /// upper limit
54 long m_nUpperLimit;
58 /**
59 * Set a CLogicCounter object from a CCounter
61 void cCounterToCLogicCounter( CCounter& counter, NLLOGIC::CLogicCounter& logicCounter );
64 /**
65 * Set a CCounter object from a CLogicCounter
67 void cLogicCounterToCCounter( const NLLOGIC::CLogicCounter& logicCounter, CCounter& counter );
71 #endif // !defined(AFX_COUNTER_H__0C20D48D_E90E_4B32_B53C_2C91974411DB__INCLUDED_)