status.h
来自「Linux游戏编程源码」· C头文件 代码 · 共 29 行
H
29 行
#ifndef STATUS_H#define STATUS_H#include <SDL/SDL.h>#include "gamedefs.h"int InitStatusDisplay(void);/* Initializes the status display system. Returns 0 on success, -1 on failure. Must be called after setting a video mode. */void CleanupStatusDisplay(void);/* Shuts down the status display system. */void SetStatusMessage(const char *msg);/* Sets the scrolling status message at the top of the display. The message will scroll by once, then disappear. */void SetPlayerStatusInfo(int score, int shields, int charge);void SetOpponentStatusInfo(int score, int shields);/* Sets the player or opponent's on-screen status information. */void UpdateStatusDisplay(SDL_Surface *screen);/* Updates and redraws the status display. */#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?