Moved the serverless game stuff out of msoy and back into the vilya library.

We'll be using this in game gardens, at least.
Note that the actionscript side currently doesn't compile because of
limitations in building a .swc file, but that'll be fixed soon.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@47 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-08-23 02:28:36 +00:00
parent a90d7e655b
commit 70b0d759c0
27 changed files with 2835 additions and 0 deletions
@@ -0,0 +1,68 @@
//
// $Id$
package com.threerings.ezgame.data;
import com.threerings.util.MessageBundle;
import com.threerings.parlor.game.client.GameConfigurator;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.parlor.game.data.PartyGameConfig;
/**
* A game config for a simple multiplayer game.
*/
public class EZGameConfig extends GameConfig
implements PartyGameConfig
{
/** A creator-submitted name of the game. */
public String gameName;
// from abstract GameConfig
public String getBundleName ()
{
return "general";
}
// from abstract GameConfig
public GameConfigurator createConfigurator ()
{
return null; // nothing here on the java side
}
@Override
public String getGameName ()
{
return MessageBundle.taint(gameName);
}
// from abstract PlaceConfig
public String getManagerClassName ()
{
return "com.threerings.ezgame.server.EZGameManager";
}
// from PartyGameConfig
public byte getPartyGameType ()
{
// TODO
return NOT_PARTY_GAME;
}
@Override
public boolean equals (Object other)
{
if (!super.equals(other)) {
return false;
}
EZGameConfig that = (EZGameConfig) other;
return this.gameName.equals(that.gameName);
}
@Override
public int hashCode ()
{
return super.hashCode(); // TODO: incorp game name?
}
}