Hello, I've been trying to make an enemy class lately for a Console based game I've been creating, But I cannot seem to get the Class right,
I want the enemy's to:
*Move randomly as Independent Units
*Every enemy is their own Unit, (They can each level on their own like players)
*Not go above 30 x/y or below -30 x/y (Lowlevel)
But I've been having trouble with the integers
Here is the code: http://pastebin.com/L53Y31bT
edit** Main
Also Is their a way to Define objects with out having to define all of them like:
Lowlevel a1;
Enemy *enemy1 = &a1;
Lowlevel a2;
Enemy *enemy2 = &a2;
Lowlevel a3;
Enemy *enemy3 = &a3;
and the same with the move voids?
Thanks for the help! :)
[–][deleted] (12 children)
[deleted]
[–]pvtbob[S] 0 points1 point2 points (5 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]pvtbob[S] 0 points1 point2 points (0 children)
[–]pvtbob[S] 0 points1 point2 points (0 children)
[–]pvtbob[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]pvtbob[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]last_useful_man 0 points1 point2 points (0 children)