public Entity(int x, int y, int id){
		NecroBotVariables = new  VariablesAtTime(sysTime);
		this.x = x ; this.y = y;
		this.id=id;

		if(id==1 || id ==2){ // if the entity is a player
			
			this.default_FireRate = InformationExpert.PLAYER_DEFAULT_FIRE_RATE; this.fireRate = this.default_FireRate;
			this.default_Speed = InformationExpert.PLAYER_DEFAULT_SPEED ; this.speed = this.default_Speed ;
			this.default_Damage = InformationExpert.PLAYER_DEFAULT_DAMAGE ; this.damage = this.default_Damage;
			this.default_Health = InformationExpert.PLAYER_DEFAULT_HEALTH ; this.health = this.default_Health ;
			
			
		}
		if(id ==3 ){
			this.default_FireRate = InformationExpert.BOT_DEFAULT_FIRE_RATE; this.fireRate = this.default_FireRate;
			this.default_Speed = InformationExpert.BOT_DEFAULT_SPEED ; this.speed = this.default_Speed ;
			this.default_Damage = InformationExpert.BOT_DEFAULT_DAMAGE ; this.damage = this.default_Damage;
			this.default_Health = InformationExpert.BOT_DEFAULT_HEALTH ; this.health = this.default_Health ;
			this.projectileSpeedModifier = -2;
		}
		
		this.name = "";
		this.MyImages = new EntityImageLibrary(this.id);
		try {
			
		switch(id){
		case 1: projectileImg = ImageIO.read(new File("res\\ProjectileHero1.png")); break;
		case 2: projectileImg = ImageIO.read(new File("res\\ProjectileHero2.png")); break;
		case 3: projectileImg = ImageIO.read(new File("res\\ProjectileBOT.png")); break;
			
		}
		} catch (IOException e) {}
		this.roundsWon=0;
		this.name="";
		this.maxHealth = this.default_Health;
		
		renewGotHit();
		renewHit();
		serialNum = sysTime+ this.id;
		
		
		}