Exemplo n.º 1
0
func (tf TileFloor) GetSprites(rm *resources.ResourceManager) []*resources.Bitmap {
	return []*resources.Bitmap{rm.GetTileOrDefault(tf.spriteName)}
}
Exemplo n.º 2
0
func (rt *RoadTile) GetSprites(rm *resources.ResourceManager) []*resources.Bitmap {
	rt.adjLock.RLock()
	floorBmp := rm.GetTileOrDefault(rt.floorName)
	rt.adjLock.RUnlock()
	return []*resources.Bitmap{floorBmp}
}
Exemplo n.º 3
0
func (et *EmptyTile) GetSprites(rm *resources.ResourceManager) []*resources.Bitmap {
	floor := rm.GetTileOrDefault(EMPTY_TILE_FLOOR)
	return []*resources.Bitmap{floor}
}