ATCFS
 全て クラス 名前空間 ファイル 関数 変数 型定義 マクロ定義 ページ
Wiper.h
[詳解]
1 // Copyright 2014 Christopher Lees
2 // Copyright 2004 Oskari Saarekas
3 // Copyright 2018 S520
4 //
5 // UKTrainSYS public domain safety systems code by Anthony Bowden.
6 // OpenBVE public domain plugin template by Odyakufan / Michelle.
7 // OS_SZ_ATS derived code originally licenced under the GPL and
8 // relicenced with permission from Stefano Zilocchi.
9 // CAWS code based upon a public - domain template by Odyakufan.
10 //
11 // All rights reserved.
12 //
13 // Redistribution and use in source and binary forms, with or without
14 // modification, are permitted provided that the following conditions are met :
15 //
16 // *Redistributions of source code must retain the above copyright notice, this
17 // list of conditions and the following disclaimer.
18 //
19 // * Redistributions in binary form must reproduce the above copyright notice,
20 // this list of conditions and the following disclaimer in the documentation
21 // and / or other materials provided with the distribution.
22 //
23 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 // DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 // DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31 // OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 
34 #ifndef WIPER_H_
35 #define WIPER_H_
36 
37 class Wiper {
38  private:
45 
46  public:
50  int *DeltaT;
56 
57  Wiper(void);
58  virtual ~Wiper(void);
59  void Init(void);
60  void WiperRequest(int request);
61  void MoveWiper();
62  void Exe(void);
63 };
64 
65 #endif // WIPER_H_
int wiper_speed_
Definition: Wiper.h:47
int wiper_sw_sound_
Definition: Wiper.h:48
int wiper_delay_
Definition: Wiper.h:53
int wiper_current_position_
Definition: Wiper.h:49
int wiper_hold_position_
Definition: Wiper.h:52
int wiper_sound_
Definition: Wiper.h:55
int next_wiper_sound_
Definition: Wiper.h:44
int wiper_sound_behaviour_
Definition: Wiper.h:54
void Exe(void)
Definition: Wiper.cpp:70
void MoveWiper()
Definition: Wiper.cpp:58
Wiper(void)
Definition: Wiper.cpp:38
int next_wiper_sw_sound_
Definition: Wiper.h:39
int wiper_direction_
Definition: Wiper.h:41
void Init(void)
Definition: Wiper.cpp:44
int wiper_timer_
Definition: Wiper.h:40
void WiperRequest(int request)
Definition: Wiper.cpp:48
bool wiper_held_
Definition: Wiper.h:43
int wiper_held_timer_
Definition: Wiper.h:42
virtual ~Wiper(void)
Definition: Wiper.cpp:41
int wiper_rate_
Definition: Wiper.h:51
Definition: Wiper.h:37
int * DeltaT
Definition: Wiper.h:50