Changeset 223
- Timestamp:
- Jan 18, 2011, 2:04:14 AM (10 years ago)
- Location:
- trunk/monsterz
- Files:
-
- 1 added
- 1 deleted
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/monsterz/Makefile.am
r221 r223 2 2 noinst_PROGRAMS = monsterz 3 3 4 monsterz_SOURCES = monsterz.cpp game.cpp game.h debugboard.cpp debugboard.h4 monsterz_SOURCES = monsterz.cpp game.cpp game.h board.cpp board.h 5 5 monsterz_CXXFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ 6 6 monsterz_LDADD = $(top_builddir)/src/liblol.a -
trunk/monsterz/board.cpp
r222 r223 17 17 18 18 #include "core.h" 19 #include " debugboard.h"19 #include "board.h" 20 20 21 21 /* 22 * DebugBoard implementation class22 * Board implementation class 23 23 */ 24 24 25 class DebugBoardData25 class BoardData 26 26 { 27 friend class DebugBoard;27 friend class Board; 28 28 29 29 private: … … 33 33 34 34 /* 35 * Public DebugBoard class35 * Public Board class 36 36 */ 37 37 38 DebugBoard::DebugBoard(Game *game)38 Board::Board(Game *game) 39 39 { 40 data = new DebugBoardData();40 data = new BoardData(); 41 41 data->game = game; 42 42 Ticker::Ref(game); … … 46 46 } 47 47 48 void DebugBoard::TickGame(float deltams)48 void Board::TickGame(float deltams) 49 49 { 50 50 Entity::TickGame(deltams); 51 51 } 52 52 53 void DebugBoard::TickDraw(float deltams)53 void Board::TickDraw(float deltams) 54 54 { 55 55 Entity::TickDraw(deltams); … … 68 68 } 69 69 70 DebugBoard::~DebugBoard()70 Board::~Board() 71 71 { 72 72 Ticker::Unref(data->game); -
trunk/monsterz/monsterz.cpp
r221 r223 24 24 #include "game.h" 25 25 #include "sdlinput.h" 26 #include "board.h" 27 26 28 #include "debugfps.h" 27 #include "debugboard.h"28 29 29 30 static float const FPS = 30.0f; … … 61 62 /* Register an input driver and some debug stuff */ 62 63 new SdlInput(); 64 new Board(game); 63 65 new DebugFps(); 64 new DebugBoard(game);65 66 66 67 while (!Ticker::Finished())
Note: See TracChangeset
for help on using the changeset viewer.