Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

insertIntoCoordinates

Description

Inserts a building into the specified coordinates.

Arguments

1 table buildingCfg

the building config registered via :registerNew().

2 world object

the world to insert the building into.

3 number gridX

the X coordinate.

4 number gridY

the Y coordinate.

5 number rotation

the rotation of the building.

6 bool playerOwned

whether the building should belong to the player.

7 string rivalOwner

the ID of the rival that the building should belong to.

8 bool reserved

whether the building is reserved for the future. This is used in the tutorial for some of the buildings.

9 bool residential

whether the building is residential. Residential buildings can not be purchased.

10 floorTileGrid grid

the grid to insert it into. If none is given, it will get it from the world object that was passed into the method.