41行为类型添加

back_recharge
lvxinran 2019-07-03 18:28:04 +08:00
parent 4d4a47dd0f
commit 63107c3af7
2 changed files with 22 additions and 1 deletions

View File

@ -102,10 +102,11 @@ public class EventType {
public static final int thirtyEight = 38;
public static final int thirtyNine = 39;
public static final int fourty = 40;
public static final int fourtyOne = 41;
public static final int fourtyTwo = 42;
public static final int fourtyThree = 43;
public static final int updatePonintEvent = 1;
public static final int fightEvent = 2;
public static final int shopEvent = 3;

View File

@ -0,0 +1,20 @@
package com.ljsd.jieling.handler.map.behavior;
import com.ljsd.jieling.handler.map.EventType;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.protocols.MapInfoProto;
import org.springframework.stereotype.Component;
@Component
public class FourtyOneBehavior extends BaseBehavior {
@Override
public int getBehaviorType() {
return EventType.fourtyOne;
}
@Override
public boolean process(int optionId, User user, int[][] behaviorTypeValues, MapInfoProto.EventUpdateResponse.Builder eventUpdateResponse) throws Exception {
BehaviorUtil.fightReady(user.getId(), behaviorTypeValues[0][0] + "#" + Integer.toString(optionId));
return true;
}
}