public Obstacle(String key, int x, int y) {
		genObstacle tmp;
		try {
			tmp = (genObstacle) genObstacle.obsMapping.get(key);
		} catch (IllegalArgumentException e) {
			tmp = new genObstacle(-1,false,false,0);	// ID = 0 collision, visible, hurting 
		}
		if (tmp != null) {
			super.n = tmp.getID();
			super.collisionTop = tmp.CollisionTop();
			super.collisionBot = tmp.CollisionBot();
			super.collisionSide = tmp.CollisionSide();
			super.visible = tmp.visible();
			super.hurting = tmp.getDmg();
		}
		this.x = x;
		this.y = y;
	}