Go to the source code of this file.
|
void | NewGame (void) |
|
bool CARDLIBPROC | RowStackDragProc (CardRegion &stackobj, int iNumDragCards) |
|
bool CARDLIBPROC | RowStackDropProc (CardRegion &stackobj, CardStack &dragcards) |
|
bool | CanDrop (CardRegion &stackobj, Card card) |
|
bool CARDLIBPROC | SuitStackDropProc (CardRegion &stackobj, CardStack &dragcards) |
|
void CARDLIBPROC | SuitStackClickProc (CardRegion &stackobj, int iNumClicked) |
|
void CARDLIBPROC | RowStackClickProc (CardRegion &stackobj, int iNumClicked) |
|
CardRegion * | FindSuitStackFromCard (Card card) |
|
void CARDLIBPROC | SuitStackAddProc (CardRegion &stackobj, const CardStack &added) |
|
void CARDLIBPROC | RowStackDblClickProc (CardRegion &stackobj, int iNumClicked) |
|
void CARDLIBPROC | PileClickProc (CardRegion &stackobj, int iNumClicked) |
|
void CARDLIBPROC | PileDblClickProc (CardRegion &stackobj, int iNumClicked) |
|
void | FixIfOneCardLeft (void) |
|
void CARDLIBPROC | PileRemoveProc (CardRegion &stackobj, int iItems) |
|
void CARDLIBPROC | DeckClickProc (CardRegion &stackobj, int iNumClicked) |
|
◆ TRACE
◆ CanDrop()
Definition at line 197 of file solgame.cpp.
198{
199 TRACE(
"ENTER CanDrop()\n");
200 int topval;
201
203
205
207 {
208 if(card.
Suit() != cardstack[0].Suit())
209 {
210 TRACE(
"EXIT CanDrop()\n");
211 return false;
212 }
213
214 topval = cardstack[0].LoVal();
215 }
216 else
217 {
218 topval = 0;
219 }
220
221
222 if(card.
LoVal() != (topval + 1))
223 {
224 TRACE(
"EXIT CanDrop()\n");
225 return false;
226 }
227
228 TRACE(
"EXIT CanDrop()\n");
229 return true;
230}
const CardStack & GetCardStack()
Referenced by FindSuitStackFromCard(), and SuitStackDropProc().
◆ DeckClickProc()
Definition at line 504 of file solgame.cpp.
505{
506 TRACE(
"ENTER DeckClickProc()\n");
507
509
512
515
516
519
521 {
523 {
525 {
527
533 }
534 }
536 {
539 {
542 else
544 }
545
547
552
554 }
555 else
556 {
558
564 }
565
567 }
568 else
569 {
571
573
574
576 temp = cardstack.
Pop(numcards);
578
581
583
584
586
588 }
589
591
594
596
598 TRACE(
"EXIT DeckClickProc()\n");
599}
void SetCardStack(const CardStack &cs)
void SetOffsets(int x, int y)
void Push(const Card card)
void FixIfOneCardLeft(void)
void UpdateStatusBar(void)
#define OPTION_THREE_CARDS
void SetUndo(int set_source_id, int set_destination_id, int set_number_of_cards, int set_prev_score, int set_prev_visible_pile_cards)
Referenced by CreateSol().
◆ FindSuitStackFromCard()
Definition at line 323 of file solgame.cpp.
324{
325 TRACE(
"ENTER FindSuitStackFromCard()\n");
326
327 for(
int i = 0;
i < 4;
i++)
328 {
330 {
331 TRACE(
"EXIT FindSuitStackFromCard()\n");
333 }
334 }
335
336 TRACE(
"EXIT FindSuitStackFromCard()\n");
337 return 0;
338}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
CardRegion * pSuitStack[4]
bool CanDrop(CardRegion &stackobj, Card card)
Referenced by RowStackDblClickProc().
◆ FixIfOneCardLeft()
◆ NewGame()
Definition at line 18 of file solgame.cpp.
19{
20 TRACE(
"ENTER NewGame()\n");
22
24 {
27 else
29
32 else
34
35 }
36 else
37 {
40 else
42
44 }
45
49
51
52
58
59
61 {
64
66
67 for(
j = 0;
j <=
i;
j++)
68 {
70 }
71
73 }
74
75
78
79
82
84
86
88
91
92 TRACE(
"EXIT NewGame()\n");
93
94}
void SetFaceDirection(UINT uDirType, int nOption)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
CardRegion * pRowStack[NUM_ROW_STACKS]
#define OPTION_KEEP_SCORE
Referenced by DifficultyDlgProc(), ShowGameOptionsDlg(), SuitStackAddProc(), and WndProc().
◆ PileClickProc()
Definition at line 438 of file solgame.cpp.
439{
440 TRACE(
"ENTER SuitStackClickProc()\n");
441
443
445
446 TRACE(
"EXIT SuitStackClickProc()\n");
447}
Referenced by CreateSol().
◆ PileDblClickProc()
Definition at line 452 of file solgame.cpp.
453{
454 TRACE(
"ENTER PileDblClickProc()\n");
455
457
459 TRACE(
"EXIT PileDblClickProc()\n");
460}
void CARDLIBPROC RowStackDblClickProc(CardRegion &stackobj, int iNumClicked)
Referenced by CreateSol().
◆ PileRemoveProc()
Definition at line 481 of file solgame.cpp.
482{
483 TRACE(
"ENTER PileRemoveProc()\n");
484
486
487
488
491 {
493 }
494
496
497 TRACE(
"EXIT PileRemoveProc()\n");
498}
Referenced by CreateSol().
◆ RowStackClickProc()
Definition at line 291 of file solgame.cpp.
292{
293 TRACE(
"ENTER RowStackClickProc()\n");
294 int numfacedown;
295
297
298
299 if(stackobj.
NumCards() == numfacedown)
300 {
301 if(numfacedown > 0) numfacedown--;
304
306 {
309 }
311 }
312
314
316
317 TRACE(
"EXIT RowStackClickProc()\n");
318}
UINT GetFaceDirection(int *pnOption)
Referenced by CreateSol().
◆ RowStackDblClickProc()
Definition at line 403 of file solgame.cpp.
404{
405 TRACE(
"ENTER RowStackDblClickProc()\n");
406
408
409
410 if(iNumClicked != 1)
411 {
412 TRACE(
"EXIT RowStackDblClickProc()\n");
413 return;
414 }
415
416
419
420 if(pDest != 0)
421 {
424
425
426
427
431 }
432 TRACE(
"EXIT RowStackDblClickProc()\n");
433}
bool SimulateDrag(CardRegion *pDestStack, int nNumCards, bool fAnimate)
CardRegion * FindSuitStackFromCard(Card card)
Referenced by CreateSol(), and PileDblClickProc().
◆ RowStackDragProc()
Definition at line 104 of file solgame.cpp.
105{
106 TRACE(
"ENTER RowStackDragProc()\n");
107 int numfacedown;
108 int numcards;
109
111
113
115
116 TRACE(
"EXIT RowStackDragProc()\n");
117 if(iNumDragCards <= numcards-numfacedown)
118 return true;
119 else
120 return false;
121
122}
Referenced by CreateSol().
◆ RowStackDropProc()
Definition at line 128 of file solgame.cpp.
129{
130 TRACE(
"ENTER RowStackDropProc()\n");
132
134
135
137 {
138 if(dragcard.
LoVal() != 13)
139 {
140 TRACE(
"EXIT RowStackDropProc(false)\n");
141 return false;
142 }
143 }
144 else
145 {
147
148
149 if(mystack[0].LoVal() != dragcard.
LoVal() + 1)
150 {
151 TRACE(
"EXIT RowStackDropProc(false)\n");
152 return false;
153 }
154
155
156 if( (mystack[0].IsBlack() && !dragcard.
IsRed()) ||
157 (!mystack[0].IsBlack() && dragcard.
IsRed()) )
158 {
159 TRACE(
"EXIT RowStackDropProc(false)\n");
160 return false;
161 }
162 }
163
165
167
169 {
171 {
173 }
174 }
176 {
178 {
180 }
182 {
184 }
185 }
186
188
189 TRACE(
"EXIT RowStackDropProc(true)\n");
190 return true;
191}
Referenced by CreateSol().
◆ SuitStackAddProc()
Definition at line 346 of file solgame.cpp.
347{
348 TRACE(
"ENTER SuitStackAddProc()\n");
349 bool fGameOver = true;
350
352
353 for(
int i = 0;
i < 4;
i++)
354 {
356 {
357 fGameOver = false;
358
359 break;
360 }
361 }
362
363 if(fGameOver)
364 {
367
369 {
371 }
372
375
377
378 for(
int i = 0;
i < 4;
i++)
379 {
381 }
382
384 {
386 }
387 else
388 {
390
392 }
393 }
394
395 TRACE(
"EXIT SuitStackAddProc()\n");
396}
void Flash(int count, int timeout)
#define MB_ICONINFORMATION
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
Referenced by CreateSol().
◆ SuitStackClickProc()
Definition at line 276 of file solgame.cpp.
277{
278 TRACE(
"ENTER SuitStackClickProc()\n");
279
281
283
284 TRACE(
"EXIT SuitStackClickProc()\n");
285}
Referenced by CreateSol().
◆ SuitStackDropProc()
Definition at line 235 of file solgame.cpp.
236{
237 TRACE(
"ENTER SuitStackDropProc()\n");
238
240
241
243 {
244 TRACE(
"EXIT SuitStackDropProc()\n");
245 return false;
246 }
247
248 bool b =
CanDrop(stackobj, dragcards[0]);
249 TRACE(
"EXIT SuitStackDropProc()\n");
250
252 {
254
256 {
258 {
260 }
262 {
264 }
265
267 }
268 }
269
271}
GLboolean GLboolean GLboolean b
Referenced by CreateSol().
◆ activepile
◆ bAutoroute
◆ fGameStarted
◆ LastId
◆ MsgDeal
◆ MsgWin
◆ VisiblePileCards