Tilt Five™ Unity API  1.4.1
TiltFive.GameBoard.GameboardDimensions Struct Reference

Public Member Functions

 GameboardDimensions (T5_GameboardSize gameboardSize)
 

Public Attributes

Length playableSpaceX
 
Length playableSpaceY
 
Length borderWidth
 

Properties

Length totalSpaceX [get]
 
Length totalSpaceY [get]
 

Detailed Description

Definition at line 149 of file GameBoard.cs.

Constructor & Destructor Documentation

◆ GameboardDimensions()

TiltFive.GameBoard.GameboardDimensions.GameboardDimensions ( T5_GameboardSize  gameboardSize)

Definition at line 157 of file GameBoard.cs.

158  {
159  var gameboardExtents = new GameboardExtents(gameboardSize);
160  playableSpaceX = gameboardExtents.ViewableSpanX;
161  playableSpaceY = gameboardExtents.ViewableSpanZ;
162  borderWidth = new Length(GameboardExtents.BORDER_WIDTH_IN_METERS, LengthUnit.Meters);
163  }
LengthUnit
Definition: Length.cs:22

References TiltFive.GameBoard.GameboardDimensions.borderWidth, TiltFive.GameBoard.GameboardDimensions.playableSpaceX, and TiltFive.GameBoard.GameboardDimensions.playableSpaceY.

Member Data Documentation

◆ borderWidth

Length TiltFive.GameBoard.GameboardDimensions.borderWidth

◆ playableSpaceX

Length TiltFive.GameBoard.GameboardDimensions.playableSpaceX

◆ playableSpaceY

Length TiltFive.GameBoard.GameboardDimensions.playableSpaceY

Property Documentation

◆ totalSpaceX

Length TiltFive.GameBoard.GameboardDimensions.totalSpaceX
get

Definition at line 154 of file GameBoard.cs.

◆ totalSpaceY

Length TiltFive.GameBoard.GameboardDimensions.totalSpaceY
get

Definition at line 155 of file GameBoard.cs.


The documentation for this struct was generated from the following file: