public static Class<? extends TrapEvent> fromString(String s) {
		if(s.equalsIgnoreCase("attack"))
			return TrapEventAttack.class;
		else if(s.equalsIgnoreCase("lpincrease"))
			return TrapEventLPIncrease.class;
		else if(s.equalsIgnoreCase("lpdecrease"))
			return TrapEventLPDecrease.class;
		else if(s.equalsIgnoreCase("powerup"))
			return TrapEventPowerUp.class;
		else if(s.equalsIgnoreCase("activate"))
			return TrapEventActivate.class;
		return TrapEvent.class;
	}