Skip to content

Commit

Permalink
주석 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ijehyunpark committed Jun 10, 2023
1 parent e1a0ba6 commit 0b607e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@

import java.util.List;

/**
* 아그리 콜라 게임 메인 로직
*/
public interface AgricolaService {
// 게임 시작
void start(Long gameRoomId);
// 플레이어 액션 요청 수락
void playAction(Long gameRoomId, Long eventId, List<AgricolaActionRequest.ActionFormat> acts);
// 플레이어 교환 요청 수락
void playExchange(Long gameRoomId, Long improvementId, ResourceType resource, int count);
void playExchange(Long gameRoomId, Long improvementId, AnimalType resource, int count);
// 플레이어 재배치 요청 수락
void playRelocation(Long gameRoomId, Integer y, Integer x, Integer newY, Integer newX, Integer count);
void playRelocation(Long gameRoomId, AnimalType animalType, Integer newY, Integer newX, Integer count);
// 게임 종료
void finish(Long gameRoomId);
// 플레이어 턴 검증
boolean validatePlayer(Long gameRoomId, Object userId);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import lombok.extern.log4j.Log4j2;
import org.springframework.messaging.handler.annotation.MessageExceptionHandler;
import org.springframework.messaging.simp.SimpMessageSendingOperations;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
* 개발 오류에 대해 리포트 하기 위한 오류 메세지 전송
*/
//@ControllerAdvice
@ControllerAdvice
@RequiredArgsConstructor
@Log4j2
public class CommunicationExceptionHandler {
Expand Down

0 comments on commit 0b607e2

Please sign in to comment.