C# Class MapGeneration

Inheritance: MonoBehaviour
Mostrar archivo Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

Property Type Description
RegularEnemy GameObject
crystalPrefab GameObject
enemyfactory EnemyFactory,
itemHolderPrefab ItemHolder,
lootFactory LootFactory,
mapArray ].int[
mapGenerationCompleted bool
mapSizeX int
mapSizeZ int
obstaclePrefab GameObject
outsidePrefab GameObject
playerStartPositionVector3 Vector3
statuePrefab GameObject
teleportingEndCauldron GameObject
teleportingStartCauldron GameObject
torchPrefab GameObject
treasureChest GameObject
wallPrefab GameObject

Public Methods

Method Description
Awake ( ) : void
Update ( ) : void
buildMap ( int map ) : void
buildOutside ( int map, int i, int j ) : void
buildWalls ( int map, int i, int j ) : void
subscribeToSorcererInstancePublisher ( ) : void
updateMySorcerer ( Sorcerer, newSorcerer ) : void

Private Methods

Method Description
FindRooms ( int genMap, int sizeX, int sizeZ ) : int
createDungeonHalls ( int map, int sizeX, int sizeZ, int numberRooms ) : ].int[
createSquares ( int sizeX, int sizeZ, int squaresToGenerate ) : ].int[
enemySpawnLocation ( int map ) : ].int[
generateMap ( int sizeX, int sizeZ, int squaresToGenerate, GameObject player, GameObject player2 ) : ].int[
generateObstacles ( int map, GameObject obstacle, bool type ) : ].int[
mapEndPosition ( int map ) : ].int[
playerStartPosition ( int map, GameObject player ) : ].int[
treasureSpawner ( int map ) : ].int[

Method Details

Awake() public method

public Awake ( ) : void
return void

Update() public method

public Update ( ) : void
return void

buildMap() public method

public buildMap ( int map ) : void
map int
return void

buildOutside() public method

public buildOutside ( int map, int i, int j ) : void
map int
i int
j int
return void

buildWalls() public method

public buildWalls ( int map, int i, int j ) : void
map int
i int
j int
return void

subscribeToSorcererInstancePublisher() public method

public subscribeToSorcererInstancePublisher ( ) : void
return void

updateMySorcerer() public method

public updateMySorcerer ( Sorcerer, newSorcerer ) : void
newSorcerer Sorcerer,
return void

Property Details

RegularEnemy public_oe property

public GameObject RegularEnemy
return GameObject

crystalPrefab public_oe property

public GameObject crystalPrefab
return GameObject

enemyfactory public_oe property

public EnemyFactory, enemyfactory
return EnemyFactory,

itemHolderPrefab public_oe property

public ItemHolder, itemHolderPrefab
return ItemHolder,

lootFactory public_oe property

public LootFactory, lootFactory
return LootFactory,

mapArray public_oe static_oe property

public static int[,] mapArray
return ].int[

mapGenerationCompleted public_oe static_oe property

public static bool mapGenerationCompleted
return bool

mapSizeX public_oe static_oe property

public static int mapSizeX
return int

mapSizeZ public_oe static_oe property

public static int mapSizeZ
return int

obstaclePrefab public_oe property

public GameObject obstaclePrefab
return GameObject

outsidePrefab public_oe property

public GameObject outsidePrefab
return GameObject

playerStartPositionVector3 public_oe static_oe property

public static Vector3 playerStartPositionVector3
return Vector3

statuePrefab public_oe property

public GameObject statuePrefab
return GameObject

teleportingEndCauldron public_oe property

public GameObject teleportingEndCauldron
return GameObject

teleportingStartCauldron public_oe property

public GameObject teleportingStartCauldron
return GameObject

torchPrefab public_oe property

public GameObject torchPrefab
return GameObject

treasureChest public_oe property

public GameObject treasureChest
return GameObject

wallPrefab public_oe property

public GameObject wallPrefab
return GameObject