+###
+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:
my_exports = window.game_model
class GameState
- constructor: (agent) ->
+ constructor: (slug, agent) ->
+ @slug = slug
@agent = agent
@hooks = {}
@cards = []
return
-my_exports.new = (agent) -> new GameState agent
+my_exports.new = (slug, agent) -> new GameState slug, agent