Support iteration over cell classification, provide access to count of set cells in the primary field and return of a success flag for moving and unioning the movable field part.
Change Log
- models:
- cell classification:
- supporting of iteration via the
pairs()
function;
- supporting of iteration via the
- cell classification:
- game business logic:
- providing access:
- to count of set cells in the primary field;
- operations with the movable field part:
- moving:
- returning of an operation success flag;
- unioning with the primary field:
- returning of an operation success flag.
- moving:
- providing access:
Features
- models:
- field settings:
- storing:
- size;
- initial offset;
- filling;
- minimal count;
- maximal count;
- supporting of default values for some settings;
- storing:
- game settings:
- storing:
- primary field settings;
- movable field part settings;
- storing:
- cell classification:
- static possibilities:
- list of all known cell kinds;
- checking if a cell kind is known;
- storing:
- old cells (those that are presented in the primary field, but not presented in the movable field part);
- new cells (those that are presented in the movable field part, but not presented in the primary field);
- intersection between the primary field and the movable field part;
- supporting of iteration via the
pairs()
function;
- static possibilities:
- field settings:
- creating a field by its settings:
- random filling of the generated field;
- game business logic:
- providing access:
- to game settings;
- to count of set cells in the primary field;
- to an offset of the movable field part;
- generating of random fields:
- primary field;
- movable field part;
- operations with the movable field part:
- moving:
- returning of an operation success flag;
- rotating;
- unioning with the primary field:
- returning of an operation success flag;
- moving:
- classifying cells (see the cell classification model for details).
- providing access: