summaryrefslogtreecommitdiff
path: root/src/mob.hpp
blob: 496a7bde8b335567308be39839e8be02ba678ffe (plain) (blame)
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
30
31
32
33
34
/*
 * =====================================================================================
 *
 *       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();
};