blob: 496a7bde8b335567308be39839e8be02ba678ffe (
plain) (
tree)
|
|
/*
* =====================================================================================
*
* Filename: mob.hpp
*
* Description: Defines a mobile entity
*
* Version: 1.0
* Created: 01/07/2023 09:54:14 PM
* Revision: none
* Compiler: gcc
*
* Author: Cara Salter (muirrum), cara@devcara.com
* Organization:
*
* =====================================================================================
*/
#pragma once
class Mob {
int _row, _col;
char _symbol;
public:
// Create a mob
Mob(char symbol, int row_0, int col_0);
// Change mob position
void move(int row_0, int col_0);
// Get character's row (y) position
int row();
// Get mob's col (x) position
int col();
// Get the symbol that represents this mob
char symbol();
};
|