event (int[]) 방식 변경: 최초에 길이 12인 [0]*12 array 초기화.
소행성 : 12일중 6일 등장 리스트 [0]*12에서 6개 +1
블랙홀 : 9(1~9)일중 4일 등장 1일차부터 9일차까지 리스트 [0]*9에서 4개 +2 ([0]*3 안에는 무조건 하나 이상 있어야 함)
트리니티 호의 생일: 12일 중 1일 등장 [0]*12에서 하나 +4
우주 멀미: 12일중 1일 등장 [0]*12에서 하나 +8
정수 시스템 고장: 9(1~9)일 중 1일 등장 [0]*9에서 하나 +16
이산화탄소 포집기 고장: 9(1~9)일 중 1일 등장 [0]*9에서 하나 +32
그러고 n일차에 event[n]의 숫자를 client에 주면됨
숨겨둔 식사: 10일째 되는 날 고정으로 등장 + 64
UI에 표시할 것:
트리니티 호의 생일
우주 멀미
숨겨둔 식사
Client에서 처리하는 변수
- Power = 3(default)
- WorkLimit = 1(default)
- RoomNo = 1~3
- Taurine = bool
- Date = 1(default)
Client에서 Server로 보내는 변수
- 1번 방
- playerid string
- 메시지 string
- gameroomid string
- 방 번호 string (firstRoom)
- 비료 투입 bool
- 비료 생산 bool
- 비료 시스템 연구 bool
- 정수 시스템 수리 bool
- 2번 방
- playerid string
- 메시지 string
- gameroomid string
- 방 번호 string (secondRoom)
- 비료 투입 bool
- 비료 생산 bool
- 이산화탄소 포집기 수리 bool
- 중앙 정원 수리 bool
- 타우린 정제 bool
- 3번 방
- playerid string
- 메시지 string
- gameroomid string
- 방 번호 string (thirdRoom)
- 비료 투입 bool
- 비료 생산 bool
- 소행성 격추기 bool
- 소행성 상태 bool
- 보호막 시스템 개발 bool
Server에서 Client로 보내는 변수
-
전체 메시지 Type : gameStart, nextRound, gameOver 중 하나 (변수명 확인좀)
-
게임 오버 messageType: gameOver
- type과 같은 뎁스 - status : DEAFEATED, VICTORY, UserLeave
- 굶어 죽었는가 bool
- 이산화탄소 때문에 죽었는가 bool
- 물 때문에 죽었는가 bool
-
공통
- 중앙 정원의 비료 개수 int
- 이벤트 int
- 비료 시스템 연구 됐는가 bool
- 보호막 시스템 개발 됐는가 bool
- 소행성에 맞았는가 bool
this.fertilizerUpgrade = fertilizerUpgrade;
this.barrierUpgrade = barrierUpgrade;
this.conflictAsteroid = conflictAsteroid;
-
1번 방 messageType: firstRoom
- 메시지 string
- 방의 비료 개수 int
- 정수 시스템 고장 났는가 bool