?? cardgame.h
字號:
/************************************************
*
* $Copyright 2001 Joseph J. Lemieux ALL RIGHTS RESERVED. $
*
* $Filename: C:\OSEKBook\src\CH08\inc\cardgame.h $
*
* Description:
*
************************************************/
#ifndef CARDGAMEH
#define CARDGAMEH
/*
* Define the minimum number of cards in the deck
* that will trigger a new shuffle.
*/
#define GAME_MINIMUM_CARDS 10
/*
* States of the game defined
*/
typedef enum GameStatetag {
GAME_NORMAL,
GAME_PLAYER_TURN,
GAME_DEALER_TURN,
GAME_SHUFFLING
}GameState;
/*
* Possible transitions that may
* occur when a key is pressed.
*/
typedef enum GameTransitionstag {
START_SHUFFLING,
DEAL_PLAYER_CARD,
END_PLAYER_TURN,
DEAL_DEALER_CARD,
NEW_GAME,
NO_ACTION
}GameTransitions;
GameState GetGameState(void);
#endif /* CARDGAMEH */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -