⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cardgame.h

📁 《OSEK/VDX汽车电子嵌入式软件编程技术》中光盘的资料
💻 H
字号:
/************************************************
*
*	$Copyright    2001 Joseph J. Lemieux  ALL RIGHTS RESERVED. $
*
*	$Filename: C:\OSEKBook\src\CH07\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;

#endif /* CARDGAMEH */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -