Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-cgt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save card number in jquery card object (card.view)
[peach-cgt.git]
/
common.coffee
diff --git
a/common.coffee
b/common.coffee
index
cec2bc5
..
3cf6867
100644
(file)
--- 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
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
# 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].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?
mark: (agent, card, state) ->
# FIXME what to do on error?