Exemplo n.º 1
0
        public Player( int id )
        {
            _id = id;

            // Default to acting as the player.
            _coralState = new Coral.State();
            Coral.Runner r = new Coral.Runner( _coralState );
            r.pushSecurityContext( new SecurityContext( "base", _id ) );

            // If we're anon, make a mob for it.
            if( id == Mob.Anon.id )
            {
            _anonWorld = new AnonWorld();
            _anonMob = new AnonMob( _anonWorld, this );
            _anonWorld.anonMob = _anonMob;
            }
        }
Exemplo n.º 2
0
        public Player( int id )
        {
            _id = id;

            // Default to acting as the player.
            actorContextPush( _id );

            // If we're anon, make a mob for it.
            if( id == Mob.Anon.id )
            {
            _anonWorld = new AnonWorld();
            _anonMob = new AnonMob( _anonWorld, this );
            _anonWorld.anonMob = _anonMob;
            }
        }