Ejemplo n.º 1
1
func (me *ghengis) tilePositions(env *antwar.Tile) map[*antwar.Tile]pos {
	return map[*antwar.Tile]pos{
		env.Here():  me.pos,
		env.North(): pos{me.pos.x, me.pos.y + 1},
		env.East():  pos{me.pos.x + 1, me.pos.y},
		env.South(): pos{me.pos.x, me.pos.y - 1},
		env.West():  pos{me.pos.x - 1, me.pos.y},
	}
}