I'm working on my newest project and one warrior must reach the takedamage method from the enemy warrior. So basically one object must just reach the method from another.
But when i am decompiling Greenfoot says:
I know this is normally easy but this problem trolls me for a hour now!
Here is the code of the Warrior who wants to reach the method.
And here the method in the class of the other warrior:
Please help !
Cannot find symbol - method takedmg()
if(infight())
{
Actor enemy = getOneObjectAtOffset(2,0,RightWarrior.class);
enemy.takedmg();
}public void takedmg()
{
System.out.println("Method reached");
}

