/* A robot is defined by: its name (e.g. "XJ47" or "Bumblebee"), its power-level (47 or 850), what shape it can transform into (a toaster, or a VW Beetle), whether it is currently transformed (true or false), and whether it's evil (false or true). - Make a constructor (using, for now, the same boilerplate pattern as we did for Song). - Make a `void testAll()`, which for now just has 2-3 examples of Robot objects. - write a function: currentShape: takes in a Robot, returns its current shape, (either "Robot" or its transfromed shape, depending on whether it's currently transformed.) Note: name your parameter `thiss`. - write a function: strongerOf, which takes in two Robots, and returns the one that has a higher power-level. (In case of a tie, use the first one). - write a function `toString` that takes in a robot, and returns either "The autobot Bumblebee!" (use "autobot" for non-evil, and "decepticon" for evil) "a regular-looking toaster." */ class Robot { private String name; private int power; private String shape; private boolean isTransformed; private boolean isEvil; public Robot( String n, int p, String s, boolean isT, boolean isE ) { this.name = n; this.power = p; this.shape = s; this.isTransformed = isT; this.isEvil = isE; } public String toString( /* Robot2 this */ ) { if (this.isTransformed) { return "A regular-looking " + this.shape + "."; } else { return "The " + (this.isEvil ? "decepticon" : "autobot") + " " + this.name + "!"; } } /** Does `this` want to fight `that`? */ boolean wouldFight( /* Robot this, */ Robot that ) { return true; } /** Does `this` want to fight any of `them`? */ boolean wouldFight( /* Robot this, */ Robot[] them ) { boolean haterSoFar = false; for (int i=0; i