Question: BOTS! - INHERITANCE Make 2 new Bots: You must make 2 new Bots that extend the FlexibleBot class. I have given 3 ideas below. You
BOTS! INHERITANCE
Make new Bots:
You must make new Bots that extend the FlexibleBot class. I have given ideas below. You mmay choose from that list or make a Bot concept of your own.
KillerBot;
a KillerBot will extend FlexibleBot
b KillerBot can destroy a Bot that is less than moveSpeed spaces away.
c When KillerBot destroys another Bot, it will remove that bot from the map and return that bot. Remember, if a Bot is removed from the map, it needs to be removed from the Map's ArrayList as well. A KillerBot may only destroy a Bot with a lower id value
d When a Killer bot destroys another Bot, increase KillerBot's id by
WallMaker and Wall
a A WallMaker will leave a Wall in every space it visits.
b A WallMaker will extend FlexibleBot
c A Wall may not move. A Wall will extend Entity;
d Walls occupy a space on the map and cannot be moved through. Walls may not be destroyed by a KillerBot
ReproductionBot
a A ReproductionBot is a FlexibleBot. Le it extends the FlexibleBot class.
b If a ReproductionBot bumps into another Bot of any type, it creates a new Bot in the closest available square on the Map.
c The new Bot will be a random type of Bot. It could be any type of Bot
d When the new Bot is generated, it must have a lower id than its parent. You choose how this will be implemented. Will it be lower than the parent by More? That's up to you. Think about KillerBots when making your decision. Should the children be more vulnerable to the Killers or no It is up to you.
Come up with a Bot Concept of your own!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
