Hello.im trying to control my sprite using sneakyinput. So i have a class called boat thats a subclass of CCNode. (boat.h and boat.mm)
and Stage subclass of CCnode (stage.h and stage.mm) so my stage.mm looks a little like this
[code]
static stage* stageInstance;
//Accessor for the main GameScene object.
+(stave*) sharedstage
{
return stageInstance;
}
[/code]
and stage.h
[code]
+(stage*) sharedstage;
-(boat*) defaultboat;
[/code]
NOw this works fine. i can move my boat BUT i made boat a sub class of Body.h/body.mm so my boat.h looks like
@interface boat : Body {
}
and when i try adding "-(boat*) defaultboat;" to my stage.h i get the error "expected type-specifier before 'boat' and i have "#include body.h" in the header. BUT if i add "#include boat.h" to the header it says "cannot find interface declaration for 'body', superclass of 'boat'..
So i kinda need a way to reach down past the body class and get to my boat class so i can add -(boat)* defaultboat so i can control it OR if this isnt the way to go about controling a subclassed sprite i am open to correction