41行为类型添加
parent
4d4a47dd0f
commit
63107c3af7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue