You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(83) |
Feb
(137) |
Mar
(11) |
Apr
(38) |
May
(10) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(26) |
Dec
(4) |
2010 |
Jan
(13) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
From: <dd...@us...> - 2008-01-08 22:55:28
|
Revision: 118 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=118&view=rev Author: ddwatts Date: 2008-01-08 14:55:32 -0800 (Tue, 08 Jan 2008) Log Message: ----------- Make CreatePlayerFrame show up and look better Modified Paths: -------------- trunk/src/gui/CreatePlayerFrame.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2008-01-08 22:47:40
|
Revision: 117 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=117&view=rev Author: ddwatts Date: 2008-01-08 14:47:44 -0800 (Tue, 08 Jan 2008) Log Message: ----------- Update CreatePlayerFrame.java to use a layout. Modified Paths: -------------- trunk/src/gui/CreatePlayerFrame.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-12 03:31:56
|
Revision: 116 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=116&view=rev Author: ddwatts Date: 2007-12-11 19:32:00 -0800 (Tue, 11 Dec 2007) Log Message: ----------- Add use frame. Fix bug when player clicks the shoot button with no marksman weapon Modified Paths: -------------- trunk/src/game/GameWorld.java trunk/src/game/Player.java trunk/src/gui/Controller.java trunk/src/gui/GameFrame.java trunk/src/gui/UseFrame.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-09 05:46:29
|
Revision: 115 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=115&view=rev Author: ddwatts Date: 2007-12-08 21:46:33 -0800 (Sat, 08 Dec 2007) Log Message: ----------- Fix amount of money enemies give you. Fix thieving for enemies Modified Paths: -------------- trunk/src/enums/Enemies.java trunk/src/game/Battles.java trunk/src/game/Player.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-09 05:34:11
|
Revision: 114 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=114&view=rev Author: ddwatts Date: 2007-12-08 21:34:16 -0800 (Sat, 08 Dec 2007) Log Message: ----------- Fix enemy behavior Modified Paths: -------------- trunk/src/game/Battles.java trunk/src/game/EnemyMovement.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 23:35:45
|
Revision: 113 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=113&view=rev Author: ddwatts Date: 2007-12-08 15:35:49 -0800 (Sat, 08 Dec 2007) Log Message: ----------- Add a dungeon to hard coded map file. Modified Paths: -------------- trunk/src/game/GameWorld.java trunk/src/gui/Controller.java trunk/src/land/Exit.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 07:47:43
|
Revision: 112 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=112&view=rev Author: ddwatts Date: 2007-12-07 23:47:48 -0800 (Fri, 07 Dec 2007) Log Message: ----------- NPC stuff working Modified Paths: -------------- trunk/src/Constants.java trunk/src/enums/NPCs.java trunk/src/game/GameWorld.java trunk/src/game/NPC.java trunk/src/game/Player.java trunk/src/gui/GameFrame.java trunk/src/land/Street.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 07:25:27
|
Revision: 111 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=111&view=rev Author: ddwatts Date: 2007-12-07 23:25:06 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Dungeons now work Modified Paths: -------------- trunk/makefile trunk/src/game/DungeonSpawns.java trunk/src/game/Enemy.java trunk/src/game/EnemyMovement.java trunk/src/game/Player.java trunk/src/gui/Controller.java trunk/src/gui/GameFrame.java Added Paths: ----------- trunk/src/exceptions/EnemySpawnNotDefinedException.java trunk/src/game/DungeonView.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 05:44:21
|
Revision: 110 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=110&view=rev Author: ddwatts Date: 2007-12-07 21:44:25 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Implement shooting. Add a stopsProjectiles method to the land interface Modified Paths: -------------- trunk/src/game/Battles.java trunk/src/game/GameWorld.java trunk/src/game/Player.java trunk/src/land/Exit.java trunk/src/land/Land.java trunk/src/land/Obstruction.java trunk/src/land/Shop.java trunk/src/land/Street.java trunk/src/land/Water.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 01:15:43
|
Revision: 109 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=109&view=rev Author: ddwatts Date: 2007-12-07 17:15:43 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Increase the number of possible Obstruction land types to 50 Modified Paths: -------------- trunk/docs/scenarios/ExampleScenario.xml trunk/docs/scenarios/ScenarioCompleteExample.xml trunk/src/enums/ObstructionLandType.java trunk/src/scenario/ObstructionLoader.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 01:07:55
|
Revision: 108 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=108&view=rev Author: ddwatts Date: 2007-12-07 17:07:52 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Make street types more generic. Add 50 possible street types and update example scenario files Modified Paths: -------------- trunk/docs/scenarios/ExampleScenario.xml trunk/docs/scenarios/ScenarioCompleteExample.xml trunk/src/enums/StreetType.java trunk/src/game/GameWorld.java trunk/src/scenario/StreetLoader.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-08 00:54:33
|
Revision: 107 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=107&view=rev Author: ddwatts Date: 2007-12-07 16:54:35 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Made obstruction types more general. There are up to 20 obstruction types now that can be defined in the example scenario file. Example scenario file updated. Modified Paths: -------------- trunk/docs/scenarios/ScenarioCompleteExample.xml trunk/makefile trunk/src/enums/ObstructionLandType.java trunk/src/game/GameWorld.java trunk/src/scenario/ScenarioLoader.java Added Paths: ----------- trunk/src/scenario/ObstructionLoader.java Removed Paths: ------------- trunk/src/scenario/ObstructionImageLoader.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-07 00:13:25
|
Revision: 106 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=106&view=rev Author: ddwatts Date: 2007-12-06 16:13:29 -0800 (Thu, 06 Dec 2007) Log Message: ----------- Better logic when picking up a suitcase of money. Modified Paths: -------------- trunk/src/game/Item.java This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-06 23:50:43
|
Revision: 105 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=105&view=rev Author: ddwatts Date: 2007-12-06 15:50:47 -0800 (Thu, 06 Dec 2007) Log Message: ----------- More complex hard coded map for testing. Modified Paths: -------------- trunk/src/game/GameWorld.java trunk/src/gui/Controller.java trunk/src/land/Shop.java Modified: trunk/src/game/GameWorld.java =================================================================== --- trunk/src/game/GameWorld.java 2007-12-06 23:41:23 UTC (rev 104) +++ trunk/src/game/GameWorld.java 2007-12-06 23:50:47 UTC (rev 105) @@ -27,6 +27,7 @@ import src.land.Land; import src.land.Exit; import src.land.Obstruction; +import src.land.Shop; import src.land.Street; /** @@ -61,7 +62,7 @@ } private void debugAddCity(){ - Land[][] newCity = new Land[4][6]; + Land[][] newCity = new Land[6][6]; newCity[0][0] = new Obstruction(ObstructionLandType.WALL, false); newCity[0][1] = new Obstruction(ObstructionLandType.WALL, false); newCity[0][2] = new Obstruction(ObstructionLandType.WALL, false); @@ -81,11 +82,23 @@ newCity[2][4] = new Street(StreetType.REGULAR_STREET, -1, null, null, null); newCity[2][5] = new Obstruction(ObstructionLandType.WALL, false); newCity[3][0] = new Obstruction(ObstructionLandType.WALL, false); - newCity[3][1] = new Obstruction(ObstructionLandType.WALL, false); + newCity[3][1] = new Shop(Shops.AMMO_L); newCity[3][2] = new Obstruction(ObstructionLandType.WALL, false); newCity[3][3] = new Obstruction(ObstructionLandType.WALL, false); newCity[3][4] = new Obstruction(ObstructionLandType.WALL, false); newCity[3][5] = new Obstruction(ObstructionLandType.WALL, false); + newCity[4][0] = new Obstruction(ObstructionLandType.WALL, false); + newCity[4][1] = new Obstruction(ObstructionLandType.WALL, false); + newCity[4][2] = new Obstruction(ObstructionLandType.WALL, false); + newCity[4][3] = new Obstruction(ObstructionLandType.WALL, false); + newCity[4][4] = new Obstruction(ObstructionLandType.WALL, false); + newCity[4][5] = new Obstruction(ObstructionLandType.WALL, false); + newCity[5][0] = new Obstruction(ObstructionLandType.WALL, false); + newCity[5][1] = new Obstruction(ObstructionLandType.WALL, false); + newCity[5][2] = new Obstruction(ObstructionLandType.WALL, false); + newCity[5][3] = new Obstruction(ObstructionLandType.WALL, false); + newCity[5][4] = new Obstruction(ObstructionLandType.WALL, false); + newCity[5][5] = new Obstruction(ObstructionLandType.WALL, false); //newCity[2][2].setEnemy(new Enemy(Enemies.E_000, 2, 2, 1)); newCity[2][4].setEnemy(new Enemy(Enemies.E_000, 2, 4, 1)); Modified: trunk/src/gui/Controller.java =================================================================== --- trunk/src/gui/Controller.java 2007-12-06 23:41:23 UTC (rev 104) +++ trunk/src/gui/Controller.java 2007-12-06 23:50:47 UTC (rev 105) @@ -39,8 +39,6 @@ public class Controller { private GameFrame gf; - //private int explodeRow; - //private int explodeCol; /** * Sets the game frame for this controller. Modified: trunk/src/land/Shop.java =================================================================== --- trunk/src/land/Shop.java 2007-12-06 23:41:23 UTC (rev 104) +++ trunk/src/land/Shop.java 2007-12-06 23:50:47 UTC (rev 105) @@ -42,6 +42,14 @@ private Shops type; /** + * Constructor sets up type of shop. + * @param type Shops : type + */ + public Shop(Shops type){ + this.type = type; + } + + /** * Not possible for shops * @param item Item : the item */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dd...@us...> - 2007-12-06 23:41:18
|
Revision: 104 http://nitsloch.svn.sourceforge.net/nitsloch/?rev=104&view=rev Author: ddwatts Date: 2007-12-06 15:41:23 -0800 (Thu, 06 Dec 2007) Log Message: ----------- Move outside view code outside of the GUI layer. Modified Paths: -------------- trunk/makefile trunk/src/game/GameWorld.java trunk/src/gui/Controller.java trunk/src/gui/GameFrame.java Added Paths: ----------- trunk/src/game/OutsideView.java Removed Paths: ------------- trunk/src/gui/RenderOutsideView.java Modified: trunk/makefile =================================================================== --- trunk/makefile 2007-12-05 22:45:51 UTC (rev 103) +++ trunk/makefile 2007-12-06 23:41:23 UTC (rev 104) @@ -22,7 +22,6 @@ $(gui)/GameFrame.java \ $(gui)/HospitalShop.java \ $(gui)/ItemShop.java \ - $(gui)/RenderOutsideView.java \ $(gui)/UseFrame.java \ $(enums)/Armor.java \ $(enums)/DamageType.java \ @@ -56,6 +55,7 @@ $(game)/Item.java \ $(game)/Messages.java \ $(game)/NPC.java \ + $(game)/OutsideView.java \ $(game)/Player.java \ $(game)/TheGame.java \ $(game)/Vehicle.java \ Modified: trunk/src/game/GameWorld.java =================================================================== --- trunk/src/game/GameWorld.java 2007-12-05 22:45:51 UTC (rev 103) +++ trunk/src/game/GameWorld.java 2007-12-06 23:41:23 UTC (rev 104) @@ -41,6 +41,9 @@ private int currentLevel; private ArrayList<Land[][]> cities; private Land[][] landArray; + + private int explodeRow; + private int explodeCol; // A collection of players for now, to make it easier later // if networking is ever implemented. @@ -50,6 +53,9 @@ players = new ArrayList<Player>(); cities = new ArrayList<Land[][]>(); currentLevel = 0; + + explodeRow = -1; + explodeCol = -1; debugAddCity(); } @@ -518,6 +524,38 @@ } } } + + /** + * Accessor for the explode row for the display. + * @return int : explode row + */ + public int getExplodeRow(){ + return explodeRow; + } + + /** + * Accessor for the explode column for the display. + * @return int : explode column + */ + public int getExplodeCol(){ + return explodeCol; + } + + /** + * Mutator for explode row. + * @param row int : row + */ + public void setExplodeRow(int row){ + explodeRow = row; + } + + /** + * Mutator for explode column. + * @param col int : column + */ + public void setExplodeCol(int col){ + explodeCol = col; + } /** * Accessor for the current city. Added: trunk/src/game/OutsideView.java =================================================================== --- trunk/src/game/OutsideView.java (rev 0) +++ trunk/src/game/OutsideView.java 2007-12-06 23:41:23 UTC (rev 104) @@ -0,0 +1,103 @@ +/* + This file is part of NitsLoch. + + Copyright (C) 2007 Darren Watts + + NitsLoch is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + NitsLoch is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with NitsLoch. If not, see <http://www.gnu.org/licenses/>. + */ + +package src.game; + +import java.awt.image.BufferedImage; + +import src.enums.ExplosionImages; +import src.land.Land; +import src.scenario.Images; + +/** + * Class that controls what is to be drawn to the main GUI window + * when the player is outside, not looking at the map. + * @author Darren Watts + * date 12/5/07 + */ +public class OutsideView { + + /** + * Gets the view that will be drawn to the main GUI window. Sets + * up the buffered images and returns them to the main window. + * @param worldView Land[][] : the land that is within view of the + * player. + * @return BufferedImage[][] : images for each cell in the main GUI + * window. + */ + public static BufferedImage[][] getView(Land[][] worldView){ + int explodeRow = GameWorld.getInstance().getExplodeRow(); + int explodeCol = GameWorld.getInstance().getExplodeCol(); + // Draw the explosion, if there is one + BufferedImage[][] bufImages = new BufferedImage[src.Constants.WORLD_VIEW_SIZE] + [src.Constants.WORLD_VIEW_SIZE]; + Images images = Images.getInstance(); + + /* + * Checks the land at each cell within visible range and sets the + * BufferedImage array to the correct image. If there is an + * explosion, it will overwrite the getImage call for that land + * object with the picture of the explosion. + */ + for(int row = 0; row < src.Constants.WORLD_VIEW_SIZE; row++){ + for(int col = 0; col < src.Constants.WORLD_VIEW_SIZE; col++){ + + bufImages[row][col] = images.getImage(worldView[row][col].getImage()); + + if(explodeRow > -1){ // There is an explosion + try{ + bufImages[row][col] = null; + if(row == explodeRow-1 && + col == explodeCol-1) + bufImages[row][col] = images.getImage(ExplosionImages.NORTHWEST.getImage());//ImageIO.read(new File("images/explosionNW" + Constants.IMG_EXTENSION)); + else if(row == explodeRow-1 && + col == explodeCol) + bufImages[row][col] = images.getImage(ExplosionImages.NORTH.getImage()); + else if(row == explodeRow-1 && + col == explodeCol+1) + bufImages[row][col] = images.getImage(ExplosionImages.NORTHEAST.getImage()); + else if(row == explodeRow && + col == explodeCol+1) + bufImages[row][col] = images.getImage(ExplosionImages.EAST.getImage()); + else if(row == explodeRow+1 && + col == explodeCol+1) + bufImages[row][col] = images.getImage(ExplosionImages.SOUTHEAST.getImage()); + else if(row == explodeRow+1 && + col == explodeCol) + bufImages[row][col] = images.getImage(ExplosionImages.SOUTH.getImage()); + else if(row == explodeRow+1 && + col == explodeCol-1) + bufImages[row][col] = images.getImage(ExplosionImages.SOUTHWEST.getImage()); + else if(row == explodeRow && + col == explodeCol-1) + bufImages[row][col] = images.getImage(ExplosionImages.WEST.getImage()); + else if(row == explodeRow && + col == explodeCol) + bufImages[row][col] = images.getImage(ExplosionImages.CENTER.getImage()); + + if(row == 3 && col == 3) bufImages[row][col] = null; + } catch(Exception e){ + System.out.println("Cannot find explosion picture"); + } + } + } + } + return bufImages; + } +} Modified: trunk/src/gui/Controller.java =================================================================== --- trunk/src/gui/Controller.java 2007-12-05 22:45:51 UTC (rev 103) +++ trunk/src/gui/Controller.java 2007-12-06 23:41:23 UTC (rev 104) @@ -19,12 +19,15 @@ package src.gui; +import java.awt.image.BufferedImage; + import src.land.Land; import src.enums.Armor; import src.enums.Direction; import src.enums.Facing; import src.enums.Weapon; import src.game.GameWorld; +import src.game.OutsideView; import src.game.TheGame; /** @@ -36,8 +39,8 @@ public class Controller { private GameFrame gf; - private int explodeRow; - private int explodeCol; + //private int explodeRow; + //private int explodeCol; /** * Sets the game frame for this controller. @@ -45,8 +48,6 @@ */ public void setGameFrame(GameFrame frame){ gf = frame; - explodeRow = -1; - explodeCol = -1; } /** @@ -56,27 +57,17 @@ * @param col itn : column */ public void explode(int row, int col){ - explodeRow = row; - explodeCol = col; + GameWorld.getInstance().setExplodeRow(row); + GameWorld.getInstance().setExplodeCol(col); } - /** - * Accessor for the explode row for the display. - * @return int : explode row - */ - public int getExplodeRow(){ - return explodeRow; + public BufferedImage[][] getOutsideView(){ + int row = GameWorld.getInstance().getLocalPlayer().getRow(); + int col = GameWorld.getInstance().getLocalPlayer().getCol(); + return OutsideView.getView(GameWorld.getInstance().getGameWorld(row, col)); } /** - * Accessor for the explode column for the display. - * @return int : explode column - */ - public int getExplodeCol(){ - return explodeCol; - } - - /** * Checks whether or not the local player is in a dungeon or not. * @return boolean : in dungeon */ Modified: trunk/src/gui/GameFrame.java =================================================================== --- trunk/src/gui/GameFrame.java 2007-12-05 22:45:51 UTC (rev 103) +++ trunk/src/gui/GameFrame.java 2007-12-06 23:41:23 UTC (rev 104) @@ -108,7 +108,6 @@ private final Polygon SW_POLY = new Polygon(SW_X, SW_Y, 5); private Controller controller = null; - private RenderOutsideView outside = null; private JPanel jContentPane = null; private JMenuBar jMenuBar = null; private JTextArea messages = null; @@ -147,7 +146,6 @@ public GameFrame(Controller cont){ super("NitsLoch"); controller = cont; - outside = new RenderOutsideView(controller); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); initialize(); readyForInput(jContentPane); @@ -1303,7 +1301,7 @@ BufferedImage img = null; // Get the images that should be drawn. - BufferedImage[][] bufImages = outside.getView(worldView); + BufferedImage[][] bufImages = controller.getOutsideView(); /* * Draws the image obtained from the outside view renderer in Deleted: trunk/src/gui/RenderOutsideView.java =================================================================== --- trunk/src/gui/RenderOutsideView.java 2007-12-05 22:45:51 UTC (rev 103) +++ trunk/src/gui/RenderOutsideView.java 2007-12-06 23:41:23 UTC (rev 104) @@ -1,111 +0,0 @@ -/* - This file is part of NitsLoch. - - Copyright (C) 2007 Darren Watts - - NitsLoch is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - NitsLoch is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with NitsLoch. If not, see <http://www.gnu.org/licenses/>. - */ - -package src.gui; - -import java.awt.image.BufferedImage; - -import src.enums.ExplosionImages; -import src.land.Land; -import src.scenario.Images; - -/** - * Class that controls what is to be drawn to the main GUI window - * when the player is outside, not looking at the map. - * @author Darren Watts - * date 12/5/07 - */ -public class RenderOutsideView { - - private Controller controller; - - /** - * Sets up the renderer for the outside view. - * @param control Controller : controller - */ - public RenderOutsideView(Controller control){ - controller = control; - } - - /** - * Gets the view that will be drawn to the main GUI window. Sets - * up the buffered images and returns them to the main window. - * @param worldView Land[][] : the land that is within view of the - * player. - * @return BufferedImage[][] : images for each cell in the main GUI - * window. - */ - public BufferedImage[][] getView(Land[][] worldView){ - // Draw the explosion, if there is one - BufferedImage[][] bufImages = new BufferedImage[src.Constants.WORLD_VIEW_SIZE] - [src.Constants.WORLD_VIEW_SIZE]; - Images images = Images.getInstance(); - - /* - * Checks the land at each cell within visible range and sets the - * BufferedImage array to the correct image. If there is an - * explosion, it will overwrite the getImage call for that land - * object with the picture of the explosion. - */ - for(int row = 0; row < src.Constants.WORLD_VIEW_SIZE; row++){ - for(int col = 0; col < src.Constants.WORLD_VIEW_SIZE; col++){ - - bufImages[row][col] = images.getImage(worldView[row][col].getImage()); - - if(controller.getExplodeRow() > -1){ // There is an explosion - try{ - bufImages[row][col] = null; - if(row == controller.getExplodeRow()-1 && - col == controller.getExplodeCol()-1) - bufImages[row][col] = images.getImage(ExplosionImages.NORTHWEST.getImage());//ImageIO.read(new File("images/explosionNW" + Constants.IMG_EXTENSION)); - else if(row == controller.getExplodeRow()-1 && - col == controller.getExplodeCol()) - bufImages[row][col] = images.getImage(ExplosionImages.NORTH.getImage()); - else if(row == controller.getExplodeRow()-1 && - col == controller.getExplodeCol()+1) - bufImages[row][col] = images.getImage(ExplosionImages.NORTHEAST.getImage()); - else if(row == controller.getExplodeRow() && - col == controller.getExplodeCol()+1) - bufImages[row][col] = images.getImage(ExplosionImages.EAST.getImage()); - else if(row == controller.getExplodeRow()+1 && - col == controller.getExplodeCol()+1) - bufImages[row][col] = images.getImage(ExplosionImages.SOUTHEAST.getImage()); - else if(row == controller.getExplodeRow()+1 && - col == controller.getExplodeCol()) - bufImages[row][col] = images.getImage(ExplosionImages.SOUTH.getImage()); - else if(row == controller.getExplodeRow()+1 && - col == controller.getExplodeCol()-1) - bufImages[row][col] = images.getImage(ExplosionImages.SOUTHWEST.getImage()); - else if(row == controller.getExplodeRow() && - col == controller.getExplodeCol()-1) - bufImages[row][col] = images.getImage(ExplosionImages.WEST.getImage()); - else if(row == controller.getExplodeRow() && - col == controller.getExplodeCol()) - bufImages[row][col] = images.getImage(ExplosionImages.CENTER.getImage()); - - if(row == 3 && col == 3) bufImages[row][col] = null; - } catch(Exception e){ - System.out.println("Cannot find explosion picture"); - } - } - } - } - return bufImages; - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |