Skip to content

Commit

Permalink
Merge pull request #4 from jomyhuang/elementUI-rework
Browse files Browse the repository at this point in the history
ElementUI rework
  • Loading branch information
jomyhuang authored Jul 7, 2017
2 parents 71c24a0 + 9a31091 commit aa8407f
Show file tree
Hide file tree
Showing 95 changed files with 69,077 additions and 751 deletions.
30 changes: 29 additions & 1 deletion TODOLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,41 @@ make Effect + UI component
dispatch('EFFECT_SOURCE', state.battle.defenser.main)
await dispatch('TIGGER_EFFECT', 'isDefenser')

// 科里化 -> promise all list -> compose

ef (parm1..)(context)
ef_discard (1, toBase)(context: source, target)

source:
card -> owner player
selector? ( fn -> selector(who, scope, num of pick, filter) ):
who ->
scope ->
filter ->
list -> scope.filter
selector -> HMI: effect_choice, opp_effect_choice / FN: pickup(by filter), random
num ->
zero? ->

-> target:
target card/card list (targets) -> owner player

process:
targets.map(action) -> dispatch/commit
targets.reducer(action) -> dispatch/commit

// card list modifier { (deck, hand, zone, base, graveyard) }
// card value modifier -> attack(basic, power) + sum of buff
// player/card tag modifier (add, remove)
// --> tigger effect animate





4、更精炼的效果函数动作DSL表示方式:
?check 使用marco 语言

? CojureScript


// TODO LIST
Expand Down
Loading

0 comments on commit aa8407f

Please sign in to comment.