Mercurial > hg > index.fcgi > lj > lj046-2players
comparison src/ljplay.h @ 0:c84446dfb3f5
initial add
author | paulo@localhost |
---|---|
date | Fri, 13 Mar 2009 00:39:12 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:908f78c440a3 |
---|---|
1 /* Platform hooks for LOCKJAW, an implementation of the Soviet Mind Game | |
2 | |
3 Copyright (C) 2006 Damian Yerrick <tepples+lj@spamcop.net> | |
4 | |
5 This work is free software; you can redistribute it and/or modify | |
6 it under the terms of the GNU General Public License as published by | |
7 the Free Software Foundation; either version 2 of the License, or | |
8 (at your option) any later version. | |
9 | |
10 This program is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 GNU General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU General Public License | |
16 along with this program; if not, write to the Free Software | |
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | |
19 Original game concept and design by Alexey Pajitnov. | |
20 The Software is not sponsored or endorsed by Alexey Pajitnov, Elorg, | |
21 or The Tetris Company LLC. | |
22 | |
23 */ | |
24 | |
25 #ifndef LJPLAY_H | |
26 #define LJPLAY_H | |
27 #include "lj.h" | |
28 #include "ljcontrol.h" | |
29 | |
30 /** | |
31 * Plays Lockjaw. | |
32 * @param v view | |
33 */ | |
34 void play(LJView *const v[], size_t nPlayers); | |
35 | |
36 /* | |
37 * Platform-native code must implement the following callbacks, | |
38 * which will be described later: | |
39 */ | |
40 LJBits readPad(unsigned int player); | |
41 void updField(const LJView *const v, LJBits rows); | |
42 void startingAnimation(LJView *v); | |
43 void blitField(LJView *v); | |
44 int pauseGame(struct LJPCView *v); | |
45 void playSoundEffects(LJView *v, LJBits sounds, int countdown); | |
46 void drawShadow(LJView *v); | |
47 void drawFallingPiece(LJView *v); | |
48 void drawScore(LJView *v); | |
49 int getTime(void); | |
50 void yieldCPU(void); | |
51 void ljBeginDraw(LJView *v, int sync); | |
52 void ljEndDraw(LJView *v); | |
53 int ljHandleConsoleButtons(LJView *v); | |
54 void playRedrawScreen(LJView *v); | |
55 | |
56 | |
57 #endif |