예제 #1
0
func setEntity(game interfaces.Game, entity interfaces.Entity,
	boardId, x, y int) {
	entity.SetPosition(boardId, x, y)
	game.AddEntity(entity)
}
예제 #2
0
파일: entrance.go 프로젝트: Garoth/StAbbey
func (me *entranceGen) setEntity(game interfaces.Game,
	entity interfaces.Entity, x, y int) {

	entity.SetPosition(me.GetId(), x, y)
	game.AddEntity(entity)
}