1 #pragma once 2 #include "maths.h" 3 #include "TCollisionComponent.h" 4 5 class TSink : 6 public TCollisionComponent 7 { 8 public: 9 TSink(TPinballTable* table, int groupIndex); 10 int Message(int code, float value) override; 11 void put_scoring(int index, int score) override; 12 int get_scoring(int index) override; 13 void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef, 14 TEdgeSegment* edge) override; 15 16 static void TimerExpired(int timerId, void* caller); 17 18 int Timer; 19 float TimerTime; 20 vector_type BallPosition{}; 21 vector_type BallAcceleration{}; 22 float ThrowAngleMult; 23 float ThrowSpeedMult1; 24 float ThrowSpeedMult2; 25 int SoundIndex4; 26 int SoundIndex3; 27 int Scores[3]{}; 28 int PlayerMessagefieldBackup[4]{}; 29 }; 30