1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#include "Character.hpp" Character::Character(char nSymbol, int nRow, int nCol) { symbol = nSymbol; row = nRow; col = nCol; } void Character::move(int nRow, int nCol) { row = nRow; col = nCol; } int Character::getRow() { return row; } int Character::getCol() { return col; } char Character::getSymbol() { return symbol; }