X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-cgt.git;a=blobdiff_plain;f=common.coffee;h=3cf6867af2bd2a0ef15ceca5513290dbc5ba5652;hp=cec2bc5d78f4dd0d91d773c8106a473aec290a4e;hb=711b95481e8373c56ce14f9d8b200f4204d13a36;hpb=3be596d7cfcd16a09505b8c68cad974d7b2901ac diff --git a/common.coffee b/common.coffee index cec2bc5..3cf6867 100644 --- a/common.coffee +++ b/common.coffee @@ -21,7 +21,7 @@ class GameState return unless @hooks[event]? for callback in @hooks[event] callback.apply this, args - move: (agent, card, x, y) -> # FIXME add pile argument + move: (agent, card, x, y, z) -> # FIXME add pile argument # FIXME what to do on error? return unless @cards[card]? #?.pile? #cur_pile = cards[card].pile @@ -29,8 +29,9 @@ class GameState @cards[card].x = x @cards[card].y = y + @cards[card].z = z - @trigger 'move', agent, card, x, y # FIXME add pile argument + @trigger 'move', agent, card, x, y, z # FIXME add pile argument mark: (agent, card, state) -> # FIXME what to do on error?