Worms -- OOP Redo
2016-01
Worms-Redo Project as a learning vehicle.
|
Go to the source code of this file.
Macros | |
#define | asog(ptr, row, col) (ptr + row*asogCols + col) |
#define | MAXcol 100 |
#define | MAXrow 100 |
Functions | |
void | showMsg (int y) |
void | showOneWorm (WORM *wp) |
void | showScreen () |
void | showWormsAndCarrots (WORM *wp) |
void | sprinkleCarrots () |
Variables | |
int | asogCols |
int | asogRows |
char | msg [1024] |
ASOG | passive [MAXrow *MAXcol] |
ASOG | screen [MAXrow *MAXcol] |
#define asog | ( | ptr, | |
row, | |||
col | |||
) | (ptr + row*asogCols + col) |
Definition at line 19 of file display.cpp.
Referenced by Worm::eatACarrot(), showOneWorm(), Worm::showOneWorm(), showWormsAndCarrots(), and sprinkleCarrots().
#define MAXcol 100 |
Definition at line 15 of file display.cpp.
Referenced by startCurses().
#define MAXrow 100 |
Definition at line 14 of file display.cpp.
Referenced by startCurses().
void showMsg | ( | int | y | ) |
Definition at line 6 of file display.cpp.
References msg, mvCursor, putString, and screenFlush.
Referenced by userControl().
void showOneWorm | ( | WORM * | wp | ) |
Definition at line 44 of file display.cpp.
References asog, ASOG::attr, WormInfo::color, headSeg, ASOG::onec, passive, and worm_info.
Referenced by showWormsAndCarrots().
void showScreen | ( | ) |
Definition at line 29 of file display.cpp.
References asogCols, asogRows, ASOG::attr, mvCursor, ASOG::onec, putChar, screen, and screenFlush.
Referenced by showWormsAndCarrots().
void showWormsAndCarrots | ( | WORM * | wp | ) |
Definition at line 61 of file display.cpp.
References asog, asogRows, hxWorms, screen, showOneWorm(), and showScreen().
void sprinkleCarrots | ( | ) |
Definition at line 21 of file display.cpp.
References asog, asogRows, CARROT, and passive.
int asogCols |
Definition at line 18 of file display.cpp.
Referenced by Worm::createWorm(), Worm::live(), showScreen(), and startCurses().
int asogRows |
Definition at line 18 of file display.cpp.
Referenced by Worm::createWorm(), Worm::live(), showScreen(), showWormsAndCarrots(), sprinkleCarrots(), startCurses(), and userControl().
char msg[1024] |
Definition at line 4 of file display.cpp.
Referenced by showMsg(), and userControl().
Definition at line 16 of file display.cpp.
Referenced by Worm::eatACarrot(), showOneWorm(), Worm::showOneWorm(), and sprinkleCarrots().
Definition at line 17 of file display.cpp.
Referenced by Worm::showOneWorm(), showScreen(), and showWormsAndCarrots().