Coding an Attack On Titan game... confused with polymorphism

So I would REALLY HATE to program this whole thing in order to find this isn't practical/doesn't work.

Please bear with the laughable content of this code, and its messiness. I'm lost.

My general idea for the execution of this is to use my base class (Person) to create the basic functions (from the Eren and Levi classes, respectively) so that these daughter classes can override them in their own specific executions. My points system is based on the increment of the climax value for each of the characters.

1. Do I need to make these functions pure virtual in the base class?
2. I haven't started on main yet - but when I do, I will need a for loop. Could someone give me advice where to put it?
3. Will this idea even work, because I am VERY new to polymorphism.

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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
 #include <iostream>

using namespace std;

class Person
{
    protected:
    virtual int kiss(int){};
    virtual int touch(int){};
    virtual int lick(int){};
    virtual int finger(int){};
    virtual int throwLobster(int){};
    virtual int giveUp(int){};
    virtual int stroke(int) {};
    virtual int lickStomach(int){};
    virtual int biteNipple(int) {};
    virtual int lobPinch(int) {};
    virtual int suck(int){};
    virtual int enter(int){};
    virtual int orgasm(int){};
    virtual int thrust (int) {};

};

class Eren: public: Person;
{
    public:
    virtual int kiss(int eCl)
    {
        cout << "Mm..."<< endl;
        cout << "(+1)" << endl;
        eCl++;
        return eCl;
    };
    /*virtual int touch(int eCl, bool e)
    {
        int x;
        if (erCl < 15 && e == false)
        {
        cout << "1 ~ Stroke Thigh" <<endl;
        cout << "2 ~ Stroke Face" << endl;
        cout << "3 ~ Stroke Elsewhere ;)" << endl;
        cin >> x;
        if(x==1)
        {
            cout << "(+3)" <<endl;
            erCl+3;
            return erCl;
        }
        else if (x==2)
        {

        }
        }

    };*/
    virtual int lick(int){};
    virtual int finger(int){};
    virtual int throwLobster(int){};
    virtual int giveUp(int){};
    virtual int stroke(int) {};
    virtual int lickStomach(int){};
    virtual int biteNipple(int) {};
    virtual int lobPinch(int) {};
    virtual int suck(int){};
    virtual int enter(int){};
    virtual int orgasm(int){};
    virtual int thrust (int) {};

    private:
        int erenClimax = 0;
};

int main()
{

    return 0;
}
Topic archived. No new replies allowed.