forked from JLZhong23/zillionaire
-
Notifications
You must be signed in to change notification settings - Fork 0
Winxpor/zillionaire
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/* *每个地图块的结构体定义 */ typedef struct MAP_BLOCK_ { int HouseOwnerId; //房产主人Id char house_flag; //房屋表示 int HouseLevel; //房屋等级 int HouseType; //房屋类型 int MapValue; //当前地块价值 int BlockType; //道具类型 }MAP_BLOCK; /* *每个玩家的结构体定义 */ typedef struct PLAYER_ { int PlayerId; //用户ID char *Name; //用户名称 int CurPos; //当前位置 int *HouseId; //名下房产位置 int BombNum; //炸弹数量 int RobotNum; //机器娃娃数量 int BlockNUm; //路障数量 int SleepTime; //跳过轮数 int Money; //可移动资产 int Point; //点数 struct PLAYER_ *next; // 下一个玩家 // 固定资产待定 }PLAYER; /* *游戏状态的记录 */ typedef struct GAME_ { int play_num; //玩家数量 PLAYER *current_player; //当前玩家 PLAYER *player; // 指向玩家的指针 char path[50]; // 存档路径 MAP_BLOCK map[70]; // 地图 }GAME;
About
软件工程,大富翁
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 50.6%
- C++ 24.5%
- CMake 10.9%
- Makefile 10.6%
- Python 3.4%