Im wondering why this code wont compile
m_hitpoints and m_skill are declared in the private bin of my class Enemy, but my compiler complains that it expects an identifier before int and hitpoints is not declared in this scope.
Cheers
Code:
Enemy::Enemy(int hitpoints, int skill) :
int m_hitpoints(hitpoints),
int m_skill(skill)
{}
m_hitpoints and m_skill are declared in the private bin of my class Enemy, but my compiler complains that it expects an identifier before int and hitpoints is not declared in this scope.
Cheers