I've searched the documentation but did not find anything that even hints towards this error so i thought i might aswell ask here.
The script i'm using is:
#include "./GameScripts/GameObject.as"
class Playfield
{
Playfield( uint8 rowCount, uint8 colCount )
{
this.rowCount = rowCount;
this.colCount = colCount;
cells.resize( rowCount * colCount );
}
private GameObject@ Cell( uint8 row, uint8 col )
{
return cells[ colCount * row + col ];
}
private GameObject@[] cells;
private uint8 rowCount;
private uint8 colCount;
}
when i'm removing the private keyword from the "Cell" method it compiles just fine. Anyone knows where this error comes from and how to fix it?
Thanks in Advance,
Murdocki