home *** CD-ROM | disk | FTP | other *** search
- class com.neodelight.game.Player
- {
- var config;
- var name;
- var abilities;
- var items;
- function Player(config)
- {
- trace("config: " + com.neodelight.std.XString.dump(config));
- this.config = config;
- this.name = config.name;
- for(var _loc4_ in config.playerProps)
- {
- trace("prop:" + _loc4_);
- this[_loc4_] = config.playerProps[_loc4_];
- }
- this.reset();
- _global.player = this;
- }
- function reset()
- {
- trace("");
- for(var _loc2_ in this.config.playerProps)
- {
- com.neodelight.game.PlayerProp(this[_loc2_]).reset();
- }
- this.abilities = new Object();
- this.items = new Object();
- }
- function init()
- {
- trace("");
- }
- function toString()
- {
- return "[Player]";
- }
- }
-