summaryrefslogtreecommitdiff
path: root/server/score.h
blob: 7c5ca178032d048429c6668fa8147caa0d8dcede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SCORE_H
#define SCORE_H

class Score {
	public:
		int han;
		int fu;
		
		//! Constructor.
		Score(int han_ = 0, int fu_ = 0);
		
		//! Calculate base points.
		int base_points();
		
		//! Score paid upon ron. (4 BP)
		int ron();
		
		//! Score paid upon ron by east. (6 BP)
		int ron_east();
		
		//! Score paid by others upon tsumo by others. (BP)
		int tsumo();
		
		//! Score paid by east upon tsumo by others or others upon tsumo by east. (2 BP)
		int tsumo_east();
};

#endif