Ok, I have definitions for the functions in both the interface and my character class.
CharacterInterface.cpp:
bool ICharacterInterface::IsHoldingLedge()
{
return true;
}
CharacterInterface.h (According to Epic’s documentation on interfaces, it is common practice to write functions in here, “…when a function does nothing by default, or has a trivial behavior like returning false, zero, an empty string (or something similar).”:
virtual bool NotHoldingLedge()
{
return false;
};
SideScrollerExample2Character.cpp
bool ASideScrollerExample2Character::IsHoldingLedge()
{
return true;
}
//...
bool ASideScrollerExample2Character::NotHoldingLedge()
{
return false;
}
Not only do I have the same errors as before, but I also have things like ““public: virtual bool __cdecl ASideScrollerExample2Character::IsHoldingLedge(void)” (?IsHoldingLedge@ASideScrollerExample2Character@@UEAA_NXZ) already defined in SideScrollerExample2Character.cpp.obj” (there’s one for NotHoldingLedge as well).