/* * ===================================================================================== * * Filename: mob.cpp * * Description: Implements a mobile entity * * Version: 1.0 * Created: 01/07/2023 10:02:44 PM * Revision: none * Compiler: gcc * * Author: Cara Salter (muirrum), cara@devcara.com * Organization: * * ===================================================================================== */ #include #include #include "mob.hpp" Mob::Mob(char symbol, int row_0, int col_0) { _symbol = symbol; _row = row_0; _col = col_0; } void Mob::move(int row_0, int col_0) { _row = row_0; _col = col_0; } int Mob::row() { return _row; } int Mob::col() { return _col; } char Mob::symbol() { return _symbol; }