X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-cgt.git;a=blobdiff_plain;f=common.coffee;h=d827e4ec4e618305728400eccadd9dc4f6370836;hp=f57c4d4c6807800f6d520f9e5d9fb0d2c2181805;hb=HEAD;hpb=f12edd687531576f662976ccb4d24a9f5cd42fd9 diff --git a/common.coffee b/common.coffee index f57c4d4..d827e4e 100644 --- a/common.coffee +++ b/common.coffee @@ -1,3 +1,9 @@ +### +Peach CGT -- Card Game Table simulator +Copyright (C) 2011 Jason Woofenden +Lincensed under AGPLv3. Source here: https://gitorious.org/peach-cgt +### + # this file is used by the client and server. # work around lack of module system in the browser: @@ -8,7 +14,8 @@ else my_exports = window.game_model class GameState - constructor: (agent) -> + constructor: (slug, agent) -> + @slug = slug @agent = agent @hooks = {} @cards = [] @@ -82,4 +89,4 @@ class GameState return -my_exports.new = (agent) -> new GameState agent +my_exports.new = (slug, agent) -> new GameState slug, agent