C# Class BattleManager

Inheritance: MonoBehaviour
Show file Open project: Izulkara/MagicBox Class Usage Examples

Public Properties

Property Type Description
Camera GameObject
CameraTarget Camera
RNG System.Random
angleView bool
enemyUnits List
friendlyUnits List
isPlayerTurn bool
ratio float
selectedTile Tile
selectedUnit Unit
theGrid Grid

Public Methods

Method Description
endPlayerTurn ( ) : void
togglePerspective ( ) : void

Private Methods

Method Description
Start ( ) : void
Update ( ) : void
executeAITurn ( ) : void
explore ( Unit u, int moves, Tile curTile, List list ) : void
findClosestUnit ( Unit currentUnit ) : Unit
findMovableTile ( Unit u ) : Tile

Method Details

endPlayerTurn() public method

public endPlayerTurn ( ) : void
return void

togglePerspective() public method

public togglePerspective ( ) : void
return void

Property Details

Camera public property

public GameObject Camera
return GameObject

CameraTarget public property

public Camera CameraTarget
return Camera

RNG public static property

public static Random,System RNG
return System.Random

angleView public property

public bool angleView
return bool

enemyUnits public property

public List enemyUnits
return List

friendlyUnits public property

public List friendlyUnits
return List

isPlayerTurn public property

public bool isPlayerTurn
return bool

ratio public property

public float ratio
return float

selectedTile public property

public Tile selectedTile
return Tile

selectedUnit public property

public Unit selectedUnit
return Unit

theGrid public property

public Grid theGrid
return Grid