Harry de Boer 10 年之前
父節點
當前提交
534875f4d6

+ 1 - 1
battlecamp-go-boardgenerator/main.go

@@ -1,7 +1,7 @@
 package main
 
 import (
-	"battlecamp-go-server/board"
+	"battlecamp-go/board"
 	"flag"
 	"fmt"
 	"log"

+ 9 - 9
battlecamp-go-bot/main.go

@@ -11,12 +11,12 @@ import (
 	"strconv"
 	"time"
 
-	"battlecamp-go-server/board"
-	"battlecamp-go-server/events"
-	"battlecamp-go-server/flag"
-	"battlecamp-go-server/game"
-	"battlecamp-go-server/player"
-	"battlecamp-go-server/stomp"
+	"battlecamp-go/board"
+	"battlecamp-go/events"
+	"battlecamp-go/flag"
+	"battlecamp-go/game"
+	"battlecamp-go/player"
+	"battlecamp-go/stomp"
 )
 
 func main() {
@@ -189,11 +189,11 @@ func move(gameId int64, p *player.Player, players []*player.Player, bs *board.Bo
 	}
 
 	viewPort := getViewPort(viewPortX, viewPortY, viewPortWidth, viewPortHeight, gameId, bs)
-	
+
 	direction := "W"
-	
+
 	fmt.Printf("p.Pos.X+1 %v p.Pos.Y %v\n", p.Pos.X+1, p.Pos.Y)
-	
+
 	if viewPort.Get(p.Pos.X+1, p.Pos.Y) != board.Rock {
 		direction = "E"
 	}

+ 0 - 0
Dockerfile-go-server → battlecamp-go-gameserver/Dockerfile-go-server


+ 4 - 4
gameserver/gameserver.go → battlecamp-go-gameserver/gameserver/gameserver.go

@@ -1,10 +1,10 @@
 package gameserver
 
 import (
-	"battlecamp-go-server/flag"
-	"battlecamp-go-server/game"
-	"battlecamp-go-server/stomp"
-	"battlecamp-go-server/events"
+	"battlecamp-go/flag"
+	"battlecamp-go/game"
+	"battlecamp-go/stomp"
+	"battlecamp-go/events"
 	"log"
 	"net/http"
 	"strconv"

+ 3 - 3
gameserver/urlrouter.go → battlecamp-go-gameserver/gameserver/urlrouter.go

@@ -1,9 +1,9 @@
 package gameserver
 
 import (
-	"battlecamp-go-server/game"
-	"battlecamp-go-server/player"
-	"battlecamp-go-server/stomp"
+	"battlecamp-go/game"
+	"battlecamp-go/player"
+	"battlecamp-go/stomp"
 	"encoding/json"
 	"log"
 	"net/http"

+ 2 - 2
main.go → battlecamp-go-gameserver/main.go

@@ -6,8 +6,8 @@ import (
 	"os"
 	"runtime/pprof"
 
-	"battlecamp-go-server/flag"
-	"battlecamp-go-server/gameserver"
+	"battlecamp-go/flag"
+	"battlecamp-go/battlecamp-go-gameserver/gameserver"
 )
 
 var gameServer gameserver.GameServer = gameserver.New()

+ 0 - 0
server.jmx → battlecamp-go-gameserver/server.jmx


+ 0 - 0
supervisord.conf → battlecamp-go-gameserver/supervisord.conf


+ 1 - 1
board/board.go

@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"time"
 
-	"battlecamp-go-server/flag"
+	"battlecamp-go/flag"
 )
 
 var setMask [4]byte = [4]byte{0xFC, 0xF3, 0xCF, 0x3F}

+ 1 - 1
events/events.go

@@ -1,7 +1,7 @@
 package events
 
 import (
-	"battlecamp-go-server/player"
+	"battlecamp-go/player"
 )
 
 type GameStart struct {

+ 4 - 4
game/game.go

@@ -1,10 +1,10 @@
 package game
 
 import (
-	"battlecamp-go-server/board"
-	"battlecamp-go-server/events"
-	"battlecamp-go-server/player"
-	"battlecamp-go-server/stomp"
+	"battlecamp-go/board"
+	"battlecamp-go/events"
+	"battlecamp-go/player"
+	"battlecamp-go/stomp"
 	"log"
 	"math/rand"
 	"sync"

+ 1 - 1
player/player.go

@@ -1,6 +1,6 @@
 package player
 
-import "battlecamp-go-server/board"
+import "battlecamp-go/board"
 
 type Player struct {
 	Id    string           `json:"id"`

+ 1 - 1
stomp/stomp.go

@@ -4,7 +4,7 @@ import (
 	"encoding/json"
 	"log"
 
-	"battlecamp-go-server/flag"
+	"battlecamp-go/flag"
 
 	"github.com/go-stomp/stomp"
 )