boxAct method
Act-map in mission presented using boxServe-class for everybody-to use box-shaped info.
Implementation
void boxAct(String caller) {
print('-->>-->> :mis:box:act: boxServe start -->>-->>-- ');
_buf.writeln(':mis:box:act:start: ');
final int _sw = 194; // default screen width, changed later =>
final int _rc = 47; // row count
// To use #unUsed
_sw;
_rc;
String boxHeader = ':mis:box:act:';
print('-->>-->> $boxHeader boxServe start -->>-->>-- ');
List<String> _infoL = [
'Mission is connected with other missions in camp Y/ con, and they can work together and join messaging.',
'Chores under a mission can connect and use #masters #say and placardM, and has access to :bind:bing:',
];
boxServe.init(42, 198, '_'); // rows, width or: 0 = use default 47, 195
boxServe.construct(':mis:box:act: C: $caller', ':mis:box:act: $caller');
boxServe.aHeader(1, 30, 'clayMap::');
/// Not much informative.
boxServe.aHeader(1, 42, clayMap.keys.toString());
boxServe.aHeader(2, 4, name);
boxServe.aHeader(2, 20, choreL.toString());
boxServe.aHeader(3, 4, motto);
boxServe.aHeader(4, 4, clause);
boxServe.aBox(3, 84, 2, 100, _infoL);
boxServe.aBox(6, 4, 8, 76, tl.mapToFineList(say, 8, 68));
boxServe.aBox(16, 4, 8, 60, tl.mapToFineList(placardM, 8, 52));
boxServe.aHeader(25, 4, ' * * state * * ');
boxServe.aBox(26, 4, 8, 30, tl.mapToListB(st));
boxServe.aHeader(33, 4, ' * * opSt * * ');
boxServe.aBox(34, 4, 8, 30, tl.mapToListB(_opSt));
boxServe.aHeader(15, 35, ' Enemy ');
// Coordinates: 16, 35. 8 items 30 width. Map key: 6, value 24
// howTo NULL 13 errors
boxServe.aBox(16, 35, 8, 50, tl.mapToFineList(actMisM['Enemy']!, 6, 40));
boxServe.aHeader(23, 35, ' Friend ');
// parameters: boxServe.aBox(_r, _c, _items, _w, _l)
boxServe.aBox(24, 35, 8, 50, tl.mapToFineList(actMisM['Friend']!, 6, 40));
boxServe.aHeader(31, 35, ' Project ');
boxServe.aBox(32, 35, 8, 50, tl.mapToFineList(actMisM['Project']!, 6, 40));
// --------------
boxServe.aHeader(6, 87, ' Phase ');
boxServe.aBox(7, 87, 8, 30, tl.mapToFineList(actMisM['Phase']!, 6, 40));
boxServe.aHeader(14, 87, ' Mean ');
boxServe.aBox(15, 87, 8, 30, tl.mapToFineList(actMisM['Mean']!, 6, 40));
boxServe.aHeader(22, 87, ' Event ');
boxServe.aBox(23, 87, 8, 30, tl.mapToFineList(actMisM['Event']!, 6, 40));
boxServe.aHeader(30, 87, ' Action ');
boxServe.aBox(31, 87, 8, 30, tl.mapToFineList(actMisM['Action']!, 6, 40));
// ** top right **
boxServe.aHeader(7, 160, ' Goals ');
boxServe.aBox(8, 160, 8, 33, tl.mapToFineList(actMisM["Goal"]!, 6, 24));
boxServe.aHeader(16, 160, ' Plan ');
boxServe.aBox(17, 160, 8, 33, tl.mapToFineList(actMisM['Plan']!, 6, 24));
boxServe.aHeader(24, 175, ' * * KnofHow * * ');
boxServe.aHeader(34, 175, ' * * Effort * * ');
/*
'Goal': {
'Enemy':
'Friend':
'Project'
'Plan': {
'Phase':
'Mean': {
'Event':
'Action':
*/
boxServe.show(':mis:box:act:', 'print', 2);
boxServe.done(':mis:box:act:');
print('--<<--<< :mis:box:act: boxServe done --<<--<<-- ');
}