This repository was archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbosFunctions.cpp
More file actions
118 lines (111 loc) · 2.91 KB
/
bosFunctions.cpp
File metadata and controls
118 lines (111 loc) · 2.91 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#include "stdafx.h"
static char nachricht[500];
void groesse(int x, int y) {
sprintf_s(nachricht, ">>r %d %d\n", x, y);
sendMessage( nachricht );
}
void hintergrund(int i, int f) {
if( f >= 0 ) {
sprintf_s(nachricht, ">>b %d 0x%x\n", i, f);
} else {
sprintf_s(nachricht, ">>b %d %d\n", i, f);
}
sendMessage( nachricht );
}
void hintergrund2(int i, int j, int f) {
if( f >= 0 ) {
sprintf_s(nachricht, ">>#b %d %d 0x%x\n", i, j, f);
} else {
sprintf_s(nachricht, ">>#b %d %d %d\n", i, j, f);
}
sendMessage( nachricht );
}
void flaeche(int f) {
sprintf_s(nachricht, ">>ba 0x%x\n", f);
sendMessage( nachricht );
}
void rahmen(int f) {
sprintf_s(nachricht, ">>bo 0x%x\n", f);
sendMessage( nachricht );
}
void loeschen() {
sprintf_s(nachricht, ">>c\n");
sendMessage( nachricht );
sprintf_s(nachricht, ">>clearAllText\n");
sendMessage( nachricht );
}
void farben(int f) {
sprintf_s(nachricht, ">>a 0x%x\n", f);
sendMessage( nachricht );
}
void farbe(int i, int f) {
sprintf_s(nachricht, ">>%d 0x%x\n", i, f);
sendMessage( nachricht );
}
void grau(int i, int g) {
farbe(i, g << 16 | g <<8 | g);
}
void farbe2(int i, int j, int f) {
sprintf_s(nachricht, ">># %d %d 0x%x\n", i, j, f);
sendMessage( nachricht );
}
void grau2(int i, int j, int g) {
farbe2(i, j, g << 16 | g <<8 | g);
}
void formen(char* f) {
sprintf_s(nachricht, ">>f %s\n", f);
sendMessage( nachricht );
}
void form(int i, char* f) {
sprintf_s(nachricht, ">>fi %d %s\n", i, f);
sendMessage( nachricht );
}
void form2(int i, int j, char* f) {
sprintf_s(nachricht, ">>#fi %d %d %s\n", i, j, f);
sendMessage( nachricht );
}
void symbolGroesse(int i, double s) {
sprintf_s(nachricht, ">>s %d %g\n", i, s);
sendMessage( nachricht );
}
void symbolGroesse2(int i, int j, double s) {
sprintf_s(nachricht, ">>#s %d %d %g\n", i, j, s);
sendMessage( nachricht );
}
void fontSize(int size) {
sprintf_s(nachricht, ">>fontsize %d\n", size);
sendMessage( nachricht );
}
void text(int i, char* f) {
sprintf_s(nachricht, ">>T %d %s\n", i, f);
sendMessage( nachricht );
}
void text2(int i, int j, char* f) {
sprintf_s(nachricht, ">>#T %d %d %s\n", i, j, f);
sendMessage( nachricht );
}
void textFarbe2(int i, int j, int farbe) {
sprintf_s(nachricht, ">>#TC %d %d %d\n", i, j, farbe);
sendMessage(nachricht);
}
void zeichen(int i, char c) {
if( c >= 32 ) {
sprintf_s(nachricht, ">>T %d %c\n", i, c);
sendMessage( nachricht );
}
}
void zeichen2(int i, int j, char c) {
if( c >= 32 ) {
sprintf_s(nachricht, ">>#T %d %d %c \n", i, j, c);
sendMessage( nachricht );
}
}
char *abfragen() {
sprintf_s(nachricht, "p\n" );
sendMessage( nachricht );
return getAnswer();
}
void statusText( char * s ) {
sprintf_s(nachricht, ">>t %s\n", s );
sendMessage( nachricht );
}