void drawEntity(Entity entStore)
	{
		double x = entStore.intLocX-LocX+viewRange;
		double y = entStore.intLocY-LocY+viewRange;
		//Draw flag
		if (entStore.intFlag != 0)
		{
			if (entStore.intFlag == 1)
			{
				gD.setColor(Color.green);
				gD.drawRoundRect((int)(x*intImageSize),(int)(y*intImageSize),
							intImageSize,intImageSize,intImageSize/3,intImageSize/3);
			}else if (entStore.intFlag == 2)
			{
				gD.setColor(Color.red);
				gD.drawRoundRect((int)(x*intImageSize),(int)(y*intImageSize),
							intImageSize,intImageSize,intImageSize/3,intImageSize/3);
			}
		}
		if (entStore.intStep == -1)
		{
			try
			{
				gD.drawImage(imgSprites,
							(int)(x*intImageSize),(int)(y*intImageSize),
							(int)((x+1)*intImageSize),(int)((y+1)*intImageSize),
							entStore.intImage*intImageSize,0,
							(entStore.intImage+1)*intImageSize,intImageSize,
							null);
			}catch(Exception e){}
		}else
		{
			try
			{
				gD.drawImage(imgPlayers,
								(int)(x*intImageSize),(int)(y*intImageSize),
								(int)((x+1)*intImageSize),(int)((y+1)*intImageSize),
								(entStore.intImage*8+entStore.intStep)*intImageSize,0,
								(entStore.intImage*8+entStore.intStep+1)*intImageSize,intImageSize,
								null);
			}catch(Exception e){}
		}
		//Multi-colored text by Joe Alloway
		if (entStore.intNum == 0)
		{
			gD.setColor(Color.black);
			gD.drawString(entStore.strName,(int)(x*intImageSize)-1,(int)((y+1)*intImageSize)); 
			gD.setColor(Color.white);
			gD.drawString(entStore.strName,(int)(x*intImageSize),(int)((y+1)*intImageSize)); 
		}else
		{
			gD.setColor(Color.black);
			gD.drawString(entStore.intNum+"."+entStore.strName,(int)(x*intImageSize)-1,(int)((y+1)*intImageSize)); 
			gD.setColor(Color.white);
			gD.drawString(entStore.intNum+"."+entStore.strName,(int)(x*intImageSize),(int)((y+1)*intImageSize)); 
		}
	}