diff --git a/game/actor.go b/game/actor.go deleted file mode 100644 index 5b94b3d..0000000 --- a/game/actor.go +++ /dev/null @@ -1,13 +0,0 @@ -package game - -// Actor 表示游戏中的可以放到游戏场景中的游戏对象的基本类型 -// - 需要注意 Actor 不等于 Player -// - 在 Minotaur 中,每个网络连接可以表示一个 Player,而每个玩家可以拥有多个 Actor -// - Actor 并非 Player 独有,场景中也可包含各类无主的 Actor -type Actor interface { - // SetGuid 设置对象的唯一标识符 - // - 需要注意的是该函数不应该主动执行,否则可能产生意想不到的情况 - SetGuid(guid int64) - // GetGuid 获取对象的唯一标识符 - GetGuid() int64 -} diff --git a/game/position2d.go b/game/position2d.go deleted file mode 100644 index d48ad67..0000000 --- a/game/position2d.go +++ /dev/null @@ -1,7 +0,0 @@ -package game - -// Position2D 2D位置接口定义 -type Position2D interface { - // GetPosition 获取对象位置 - GetPosition() (x, y float64) -} diff --git a/game/position2d_set.go b/game/position2d_set.go deleted file mode 100644 index 5767a52..0000000 --- a/game/position2d_set.go +++ /dev/null @@ -1,6 +0,0 @@ -package game - -// Position2DSet 2D位置设置接口定义 -type Position2DSet interface { - SetPosition(x, y float64) -} diff --git a/game/position3d.go b/game/position3d.go deleted file mode 100644 index 4a7fc20..0000000 --- a/game/position3d.go +++ /dev/null @@ -1,5 +0,0 @@ -package game - -type Position3D interface { - GetPosition() (x, y, z float64) -}