code_snippets/bat_loop library
This lib do not participate to dawoApp: here are only sample code-snippets. Some useful copy-paste stuff for learning simple functions. GOAL: find common, reusable elements for control-flow, and develop names, and ideas. In GitHub, for to be able to modify while on-The-Road.
- dawo version: 0.0.8. 13.3.2019
- devState% 60% - in gitHub: yes
- This serves as example: What can you develop from these ideas..?
- Words: batLoop: 11 / 21, batman : 18, robin : 27, joker : 31 times.
Classes
- BatLooper
- TODO teamNext class : NOT-READY not much use yet to BatLoop class but however... of course here must be class for this..
Properties
-
batFlags
↔ Map<
String, bool> -
NOT-READY sample-data batFlags
getter/setter pair
-
batHurry
↔ Map<
num, String> -
NOT-READY, PLAN? bat Hurry map xxx
getter/setter pair
-
batInfo
↔ Map<
String, String> -
sample data to develope some maps for dawlib
PLAN: Maybe: menu... mnFile, mnOpen, mnEdit ...
getter/setter pair
- batLoopReadiness → num
-
final
-
batWorld
↔ Map<
String, String> -
PLAN: autoRunMap
getter/setter pair
Functions
-
batCount(
dynamic numX, dynamic numY, dynamic numZ) → num - Totals sums of 3 functions, WHICH RETURN num values.
-
batFight(
dynamic batman, dynamic robin, dynamic joker, bool condition) → bool - TODO teamDev Untested function, NOT-READY TODO teamNext returns, when joker returns false and others are true
-
batHome(
dynamic batman, dynamic robin, dynamic joker) → void - PLAN: maybe some base-class.. and these three work inside it MAYBE: using dependency injection so plant 3 in one
-
batLooperTest(
) → void - UNTESTED: tests batLoop functions
-
batLoopInfo(
) → void - presents info about batLoop functions: batLoopInfo
-
batMail(
) → String - :(
-
batMobile(
dynamic batman, dynamic robin, dynamic joker) → void - Maybe some class, which includes these 3 methods. Mobile must be... but what would it do ?
-
batRide(
dynamic batman, dynamic robin, dynamic joker, num batNum, num robinNum, dynamic numJokerNum) → void - TODO teamNext PLAN: execute 3 of functions X times.. or X DISTANCE.
-
batTotal(
dynamic batman, dynamic robin, dynamic joker) → num - Totals sums of 3 functions, WHICH RETURN num value. (simple)
-
commandLoop(
) → void - model from dartlang.org sample loop for switch cases
-
doBatLine(
String msg) → void -
doLine(
String msg) → void -
isBoolLoop(
) → void - borrowed directly from dartlang docs... I think TODO teamNext NOT-READY. PLAN: yes.. but what?
-
joker(
dynamic batman, dynamic robin, dynamic joker) → void - PLAN: exception in output.. joker wins.. maybe..
-
oneRowIf(
) → void - from dartlang.org For very simple conditions, you can write an if statement on one line of code. Here is an example:
-
renderBatLoop(
) → void - ..
-
rollTrue(
dynamic batman, dynamic robin, dynamic joker) → void - Roll 3 functions until everyone returns true
-
trueBat(
dynamic bat, dynamic robin, dynamic joker, bool condition) → bool - three functions are rolled until ALL THREE return true TODO Functions ..something clever planned here... suppose, but what?