-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHNotice.c
72 lines (62 loc) · 1.83 KB
/
HNotice.c
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#include "HNotice.h"
#include "HGUI.h"
#include "Renderer.h"
#include <stdio.h>
void HNotice_FClr(HPlayer const *player)
{
char contents[64];
sprintf(contents, "Incredible!!! %s clean the floor!!!", player);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_Shake(HPlayer const *player)
{
char contents[32];
sprintf(contents, "%s Shake!!!", player);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_MBak(HPlayer const *player)
{
char contents[64];
sprintf(contents, "Wow %s, you did Meong-Teong-Gu-Ri!", player->name);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_PBak(HPlayer const *player)
{
char contents[64];
sprintf(contents, "Player %s, you are PPI-bak!", player->name);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_GBak(HPlayer const *player)
{
char contents[64];
sprintf(contents, "Player %s, you are GWANG-bak!", player->name);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_Win(HPlayer const *player)
{
char contents[64];
sprintf(contents, "Good job %s! You Win!", player->name);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_Lose(HPlayer const *player, int money)
{
char contents[64];
sprintf(contents, "Player %s, you lose %d won...", player->name, money);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_Nagari(void)
{
Renderer_notice("Congratulation! This phase is Nagari! Next phase will make x2 money.", CARD_HEIGHT);
}
void HNotice_President(HPlayer const *player)
{
char contents[128];
sprintf(contents, "What the... %s are president! 0~0 You win!", player->name);
Renderer_notice(contents, CARD_HEIGHT);
}
void HNotice_Bankrupt(HPlayer const *player)
{
char contents[128];
sprintf(contents, "%s got financial bankrupt. So he/she called the police. You guys are arrested.", player->name);
Renderer_notice(contents, CARD_HEIGHT);
}