Rewrite map rendering

This commit is contained in:
Anton Vakhrushev
2019-10-15 16:28:04 +03:00
parent e0050b920e
commit c05199c7d8
8 changed files with 67 additions and 125 deletions

View File

@ -3,7 +3,7 @@ require "./spec_helper"
module Game::TestBuilding
describe Building do
it "should create storehouse" do
bg = Building.new Building::Type::Storehouse, storage: 100
bg = Building.new Building::Type::StartPoint, storage: 100
bg.storage.should eq 100
end

View File

@ -13,7 +13,8 @@ module Game::TestCommand
Point.new(0, 0),
Building.new(
Building::Type::StartPoint,
storage: 200, roles: [Building::Role::Storehouse]
storage: 200,
roles: [Building::Role::Storehouse]
)
)
map.set DepositTile.new(