finish eventtype 22
parent
f2955f1e05
commit
f6021d8ddc
|
|
@ -82,6 +82,8 @@ public class EventType {
|
|||
public static final int monitorMissionAndMove = 19;
|
||||
public static final int destroyPointAnd = 20;
|
||||
|
||||
public static final int fininshMissionAndDestoryPoint = 22;
|
||||
|
||||
public static final int twentyFour = 24;
|
||||
public static final int twentyFive = 25;
|
||||
public static final int openAppointMission = 26;
|
||||
|
|
|
|||
|
|
@ -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 FinsionMissionAndDestoryBehavior extends BaseBehavior{
|
||||
@Override
|
||||
public int getBehaviorType() {
|
||||
return EventType.fininshMissionAndDestoryPoint;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean process(int optionId, User user, int[][] behaviorTypeValues, MapInfoProto.EventUpdateResponse.Builder eventUpdateResponse) throws Exception {
|
||||
BehaviorUtil.destoryPoint(user, user.getMapManager().getCurMapId(), behaviorTypeValues[0][1]);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue