|
From: SourceForge.net <no...@so...> - 2008-09-15 10:51:27
|
ToDo item #2103245, was opened at 2008-09-10 11:47 Message generated for change (Settings changed) made by aidin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1104717&aid=2103245&group_id=233820 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Aidin Gharibnavaz (aidin) >Assigned to: Aidin Gharibnavaz (aidin) Summary: Add a SHOOT command. Initial Comment: Robots should have the ability to kill each others. For doing this, each of them should have a shield (their life, health) and ability to use weapons. If shield of a robot destroy, she will die. TIPS: Add a shield variable to the `Robot' class, and related methods. Add a `isAlive()' method to the `Robot', so WorldHandler can check if the robot still alive or not. The format of `SHOOT' command is `SHOOT&direction&'. The bullet must move about 3 squares away from the robot in the specified direction. And if bullet hit a wall or something, it should be destroy. There's no need to add a bullet object or something into the game. Bullets are fast, so user can't see them. Just check if there's an object in the way of bullet and do the related actions. You can use `get(int,int)' method in the `SpareArray' to check if there's something in the spesific square. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1104717&aid=2103245&group_id=233820 |