Changeset 223


Ignore:
Timestamp:
Jan 18, 2011, 2:04:14 AM (8 years ago)
Author:
sam
Message:

Rename DebugBoard to Board. It's good enough now.

Location:
trunk/monsterz
Files:
1 added
1 deleted
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/Makefile.am

    r221 r223  
    22noinst_PROGRAMS = monsterz
    33
    4 monsterz_SOURCES = monsterz.cpp game.cpp game.h debugboard.cpp debugboard.h
     4monsterz_SOURCES = monsterz.cpp game.cpp game.h board.cpp board.h
    55monsterz_CXXFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
    66monsterz_LDADD = $(top_builddir)/src/liblol.a
  • trunk/monsterz/board.cpp

    r222 r223  
    1717
    1818#include "core.h"
    19 #include "debugboard.h"
     19#include "board.h"
    2020
    2121/*
    22  * DebugBoard implementation class
     22 * Board implementation class
    2323 */
    2424
    25 class DebugBoardData
     25class BoardData
    2626{
    27     friend class DebugBoard;
     27    friend class Board;
    2828
    2929private:
     
    3333
    3434/*
    35  * Public DebugBoard class
     35 * Public Board class
    3636 */
    3737
    38 DebugBoard::DebugBoard(Game *game)
     38Board::Board(Game *game)
    3939{
    40     data = new DebugBoardData();
     40    data = new BoardData();
    4141    data->game = game;
    4242    Ticker::Ref(game);
     
    4646}
    4747
    48 void DebugBoard::TickGame(float deltams)
     48void Board::TickGame(float deltams)
    4949{
    5050    Entity::TickGame(deltams);
    5151}
    5252
    53 void DebugBoard::TickDraw(float deltams)
     53void Board::TickDraw(float deltams)
    5454{
    5555    Entity::TickDraw(deltams);
     
    6868}
    6969
    70 DebugBoard::~DebugBoard()
     70Board::~Board()
    7171{
    7272    Ticker::Unref(data->game);
  • trunk/monsterz/monsterz.cpp

    r221 r223  
    2424#include "game.h"
    2525#include "sdlinput.h"
     26#include "board.h"
     27
    2628#include "debugfps.h"
    27 #include "debugboard.h"
    2829
    2930static float const FPS = 30.0f;
     
    6162    /* Register an input driver and some debug stuff */
    6263    new SdlInput();
     64    new Board(game);
    6365    new DebugFps();
    64     new DebugBoard(game);
    6566
    6667    while (!Ticker::Finished())
Note: See TracChangeset for help on using the changeset viewer.