Refactored Vertex and GameVertex classes into their own files, put some functions in GameVertex that made sense there
This commit is contained in:
4
game.cpp
4
game.cpp
@ -277,13 +277,13 @@ void Game::draw_stats(Vertex* v)
|
||||
line_num++;
|
||||
adj_y = y + line_num * line_height;
|
||||
DrawUtils::draw_text(display, "atk:", x, adj_y, font);
|
||||
DrawUtils::draw_text(display, itos(data.calculate_attack(v)),
|
||||
DrawUtils::draw_text(display, itos(dynamic_cast<GameVertex*>(v)->calculate_attack()),
|
||||
x + 50, adj_y, font);
|
||||
|
||||
line_num++;
|
||||
adj_y = y + line_num * line_height;
|
||||
DrawUtils::draw_text(display, "armor:", x, adj_y, font);
|
||||
DrawUtils::draw_text(display, itos(data.calculate_armor(v)),
|
||||
DrawUtils::draw_text(display, itos(dynamic_cast<GameVertex*>(v)->calculate_armor()),
|
||||
x + 50, adj_y, font);
|
||||
|
||||
line_num++;
|
||||
|
Reference in New Issue
Block a user