class CEnemy { private: int hitpoint; float x, y; public: void SetPosition(float x, float y); void SetHitpoint(int p); }; void Cenemy::SetPosition(float pos_x, float pos_y) { this->x = pos_x; this->y = pos_y; } void Cenemy::SetHitpoint(int val) { this->p = val; }