So I want my Robot to behave differently when the scanned robot it called "RamFire", and I tried doing this:
public void onScannedRobot(ScannedRobotEvent e) {
if (getName() = "RamFire") {
// If the robot is called "RamFire" do this
}
else {
// If not, do this
}
}
But when I try to compile the code it says I made an error:
I'm new to Robocode and have never programmed with java so I have no idea what I'm doing wrong.