// Path: src/main/java/common/exceptions/LoadMapFailedException.java
// public class LoadMapFailedException extends ResourceNotFoundException {
// 
//     public LoadMapFailedException() {super();}
// 
//     public LoadMapFailedException(String message) {super(message);}
// 
// }
// 
// Path: src/main/java/utilties/entities/Entity.java
// public abstract class Entity {
// 
//     protected EntityType entityType = null;
// 
//     protected Point location;
// 
//     /*
//     Entity Type enum
//      */
//     public enum EntityType {
//         EMPTY, PLAYER
//     }
// 
// 
//     public void setLocation(Point location) {
//         this.location = location;
//     }
// 
//     public Point getLocation() {
//         return this.location;
//     }
// 
//     public EntityType getEntityType() {
//         return this.entityType;
//     }
// 
// 
// }
// 
// Path: src/main/java/utilties/entities/Player.java
// public class Player extends Entity {
// 
//     private int id;
//     private int health;
//     private int damage;
//     private boolean isShielding;
//     private int shieldStrength;
// 
//     /**
//      * @param id       Player ID
//      * @param location Location of where Player will be added
//      */
//     public Player(int id, Point location) {
//         this.id = id;
//         this.health = 100;
//         this.damage = 10;
//         this.location = location;
//         entityType = EntityType.PLAYER;
//         this.isShielding = false;
//         this.shieldStrength = 5;
//     }
// 
//     /**
//      * Get the ID of the player
//      *
//      * @return ID of player
//      */
//     public int getId() {
//         return this.id;
//     }
// 
//     /**
//      * Get health of Player
//      *
//      * @return Health of Player
//      */
//     public int getHealth() {
//         return this.health;
//     }
// 
// 
//     /**
//      * Set health of player
//      *
//      * @param health Health to change to
//      */
//     public void setHealth(int health) {
//         this.health = health;
//     }
// 
// 
//     public int getDamage() {
//         return damage;
//     }
// 
//     public void setDamage(int damage) {
//         this.damage = damage;
//     }
// 
// 
//     public boolean isShielding() {
//         return isShielding;
//     }
// 
//     public void setShielding(boolean shielding) {
//         isShielding = shielding;
//     }
// 
//     public int getShieldStrength() {
//         return shieldStrength;
//     }
// 
//     public void setShieldStrength(int shieldStrength) {
//         this.shieldStrength = shieldStrength;
//     }
// 
// }


import common.exceptions.LoadMapFailedException;
import org.junit.Before;
import org.junit.Test;
import org.mapeditor.io.MapReader;
import utilties.entities.Entity;
import utilties.entities.Player;
import java.awt.*;
import java.net.URL;
import static org.junit.Assert.assertTrue;
package utilties.models;




public class EntityMapTest{

    private EntityMap entityMap;

    @Before
    public void setup() throws Exception {
        try {
            URL mapPath = new URL("https://www.cse.buffalo.edu/~jacobeks/codecarnage/me/r/game-map.tmx");
            MapReader mr = new MapReader();
            entityMap = new EntityMap(mr.readMap(mapPath), 25, 15);
        } catch (Exception ex) {
// Path: src/main/java/common/exceptions/LoadMapFailedException.java
// public class LoadMapFailedException extends ResourceNotFoundException {
// 
//     public LoadMapFailedException() {super();}
// 
//     public LoadMapFailedException(String message) {super(message);}
// 
// }
// 
// Path: src/main/java/utilties/entities/Entity.java
// public abstract class Entity {
// 
//     protected EntityType entityType = null;
// 
//     protected Point location;
// 
//     /*
//     Entity Type enum
//      */
//     public enum EntityType {
//         EMPTY, PLAYER
//     }
// 
// 
//     public void setLocation(Point location) {
//         this.location = location;
//     }
// 
//     public Point getLocation() {
//         return this.location;
//     }
// 
//     public EntityType getEntityType() {
//         return this.entityType;
//     }
// 
// 
// }
// 
// Path: src/main/java/utilties/entities/Player.java
// public class Player extends Entity {
// 
//     private int id;
//     private int health;
//     private int damage;
//     private boolean isShielding;
//     private int shieldStrength;
// 
//     /**
//      * @param id       Player ID
//      * @param location Location of where Player will be added
//      */
//     public Player(int id, Point location) {
//         this.id = id;
//         this.health = 100;
//         this.damage = 10;
//         this.location = location;
//         entityType = EntityType.PLAYER;
//         this.isShielding = false;
//         this.shieldStrength = 5;
//     }
// 
//     /**
//      * Get the ID of the player
//      *
//      * @return ID of player
//      */
//     public int getId() {
//         return this.id;
//     }
// 
//     /**
//      * Get health of Player
//      *
//      * @return Health of Player
//      */
//     public int getHealth() {
//         return this.health;
//     }
// 
// 
//     /**
//      * Set health of player
//      *
//      * @param health Health to change to
//      */
//     public void setHealth(int health) {
//         this.health = health;
//     }
// 
// 
//     public int getDamage() {
//         return damage;
//     }
// 
//     public void setDamage(int damage) {
//         this.damage = damage;
//     }
// 
// 
//     public boolean isShielding() {
//         return isShielding;
//     }
// 
//     public void setShielding(boolean shielding) {
//         isShielding = shielding;
//     }
// 
//     public int getShieldStrength() {
//         return shieldStrength;
//     }
// 
//     public void setShieldStrength(int shieldStrength) {
//         this.shieldStrength = shieldStrength;
//     }
// 
// }


// Path: src/test/java/utilties/models/EntityMapTest.java
import common.exceptions.LoadMapFailedException;
import org.junit.Before;
import org.junit.Test;
import org.mapeditor.io.MapReader;
import utilties.entities.Entity;
import utilties.entities.Player;
import java.awt.*;
import java.net.URL;
import static org.junit.Assert.assertTrue;

package utilties.models;




public class EntityMapTest{

    private EntityMap entityMap;

    @Before
    public void setup() throws Exception {
        try {
            URL mapPath = new URL("https://www.cse.buffalo.edu/~jacobeks/codecarnage/me/r/game-map.tmx");
            MapReader mr = new MapReader();
            entityMap = new EntityMap(mr.readMap(mapPath), 25, 15);
        } catch (Exception ex) {
            throw new LoadMapFailedException(ex.getMessage());