-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
1,441 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.cg.zoned; | ||
|
||
public class GameMode { | ||
public String previewLocation; | ||
public String name; | ||
public Class targetClass; | ||
|
||
public GameMode(String name, String previewLocation, Class targetClass) { | ||
this.name = name; | ||
this.previewLocation = previewLocation; | ||
this.targetClass = targetClass; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
package com.cg.zoned; | ||
|
||
import com.cg.zoned.Constants.Direction; | ||
import com.cg.zoned.Player.Direction; | ||
import com.cg.zoned.buffers.BufferClientConnect; | ||
import com.cg.zoned.buffers.BufferDirections; | ||
import com.cg.zoned.buffers.BufferGameStart; | ||
import com.cg.zoned.buffers.BufferMapData; | ||
import com.cg.zoned.buffers.BufferNewMap; | ||
import com.cg.zoned.buffers.BufferPlayerData; | ||
import com.cg.zoned.buffers.BufferPlayerDisconnected; | ||
import com.cg.zoned.buffers.BufferServerRejectedConnection; | ||
import com.esotericsoftware.kryo.Kryo; | ||
|
||
public class KryoHelper { | ||
|
||
public static void registerClasses(Kryo kryo) { | ||
kryo.register(BufferServerRejectedConnection.class); | ||
kryo.register(BufferPlayerDisconnected.class); | ||
kryo.register(BufferClientConnect.class); | ||
kryo.register(BufferPlayerData.class); | ||
kryo.register(BufferDirections.class); | ||
kryo.register(BufferGameStart.class); | ||
kryo.register(BufferMapData.class); | ||
kryo.register(BufferNewMap.class); | ||
kryo.register(Direction[].class); | ||
kryo.register(Direction.class); | ||
kryo.register(String[].class); | ||
kryo.register(byte[].class); | ||
kryo.register(int[].class); | ||
} | ||
} |
Oops, something went wrong.