You can call pOtherSyncable->getGroup() to check if it is a player. Or add a flag set during the constructor to avoid repeated string compare.
You can call pOtherSyncable- >getGroup( ) to check if it is a player.
Or add a flag set during the constructor to avoid repeated string compare.