Game Development Community

Deriving from Player

by Quest Johnny · in Torque Game Engine · 11/21/2005 (9:45 pm) · 0 replies

I'm trying to derive a new class from Player, and having trouble

The compiler is throwing out errors as if the new class were abstract, and there are virtual functions in Player, so I could fool it into thinking I am not an abstract class by declaring those functions in my own class, however:

void onImageRecoil(U32 imageSlot,ShapeBaseImageData::StateData::RecoilState) {
Player::onImageRecoil(imageSlot,???);
}//endf

virtual void updateDamageLevel() {
Player::updateDamageLevel();
}//endif

virtual void updateDamageState() {
Player::updateDamageState();
}//endif

is a bit of a puzzler.. How can I pass along ShapeBaseImageData::StateData::RecoilState? I'm not familiar with that usage.

-Thanks