#ifndef GRANDCHILDH #define GRANDCHILDH //MOTION must have member functions decide and (optionally) punish; //RANK must have member functions hungry and bitter. template class grandchild: private MOTION, private RANK { public: grandchild(game *initial_g, unsigned initial_x, unsigned initial_y) : wabbit(initial_g, initial_x, initial_y, C), MOTION(initial_g, initial_x, initial_y, C), RANK(initial_g, initial_x, initial_y, C) {} }; #endif