AOS Fog of War
Loading...
Searching...
No Matches
FischlWorks_FogWar.Shadowcaster.LevelColumn Class Reference

Public Types

enum  ETileVisibility { Hidden , Revealed }
 

Public Member Functions

 LevelColumn (IEnumerable< ETileVisibility > visibilityTiles)
 
int Count ()
 
void Reset ()
 

Properties

ETileVisibility this[int index] [get, set]
 

Member Enumeration Documentation

◆ ETileVisibility

Constructor & Destructor Documentation

◆ LevelColumn()

FischlWorks_FogWar.Shadowcaster.LevelColumn.LevelColumn ( IEnumerable< ETileVisibility visibilityTiles)
inline
123 {
124 levelColumn = new List<ETileVisibility>(visibilityTiles);
125 }

Member Function Documentation

◆ Count()

int FischlWorks_FogWar.Shadowcaster.LevelColumn.Count ( )
inline
143 {
144 return levelColumn.Count;
145 }

◆ Reset()

void FischlWorks_FogWar.Shadowcaster.LevelColumn.Reset ( )
inline
135 {
136 for (int i = 0; i < levelColumn.Count; i++)
137 {
138 levelColumn[i] = ETileVisibility.Hidden;
139 }
140 }
ETileVisibility
Definition: Shadowcaster.cs:129

Referenced by FischlWorks_FogWar.Shadowcaster.FogField.Reset().

Property Documentation

◆ this[int index]

ETileVisibility FischlWorks_FogWar.Shadowcaster.LevelColumn.this[int index]
getset
148 {
149 get {
150 if (index >= 0 && index < levelColumn.Count)
151 {
152 return levelColumn[index];
153 }
154 else
155 {
156 Debug.LogErrorFormat("index given in y axis is out of range");
157
158 return ETileVisibility.Hidden;
159 }
160 }
161 set {
162 if (index >= 0 && index < levelColumn.Count)
163 {
164 levelColumn[index] = value;
165 }
166 else
167 {
168 Debug.LogErrorFormat("index given in y axis is out of range");
169
170 return;
171 }
172 }
173 }

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