diff options
author | tom <tom@ground-control> | 2015-11-18 19:59:47 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-18 19:59:47 -0600 |
commit | a760b9339a98281a8a1072d03dbf41f08eb696a6 (patch) | |
tree | f1e7958d297c55fdbc6daa1a8d1777cb1ca78fc6 /src/Character.cpp |
shovelling
Diffstat (limited to 'src/Character.cpp')
-rw-r--r-- | src/Character.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Character.cpp b/src/Character.cpp new file mode 100644 index 0000000..71a47bb --- /dev/null +++ b/src/Character.cpp @@ -0,0 +1,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; +} |