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; } }
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; } }