public GameConfiguration( String mapName, SpriteObjects.Ship playerShip, SpriteObjects.Ship player2Ship) { this.mShip = playerShip; this.mShip2 = player2Ship; this.mMapName = mapName; }
public NetworkedAgent(System.Net.IPEndPoint endpoint, SoundHandler handler) { #if DEBUG this.receiver = new UDPReceiver(new System.Net.IPEndPoint(IPAddress.Loopback, 45001)); // localhost on port 45001 #else this.receiver = new UDPReceiver(endpoint); #endif this.receiver.onMessageRecieved += this.playerUpdateReceived; this.ship = new SpriteObjects.Ship(handler, 0, 0); }
public AIAgent(SpriteObjects.Ship ship, World world) { this.mShip = ship; this.mDirection = new Vector2(0, 0); this.mWorld = world; List<behaviour> behaviours = new List<behaviour>(); //behaviours.Add(behaviour.SeekPlayer); //behaviours.Add(behaviour.FireOnSight); //behaviours.Add(behaviour.AvoidObsticles); ai = new AIEngine.AIEngine(DIRECTION_WEIGHT, ROTATION_WEIGHT, behaviours); }
public MainMenu(int ScreenWidth, int ScreenHeight, SoundHandler player, SpriteObjects.Ship selectedShip) : base(ScreenWidth, ScreenHeight) { this.mPlayer = player; this.mScreenWidth = ScreenWidth; Title = "Gravitation"; createBackground(ref mBackground, 0.5f, 0.5f); this.mShip = selectedShip; this.createMenuButtons(); this.detailedSelectionContainer = new MenuL2Selection(); }
public LocalAgent(SpriteObjects.Ship ship) { this.mShip = ship; this.mDirection = new Vector2(0, 0); }
public ShipConfiguration(SpriteObjects.Ship mShip) { this.mShip = mShip; }
public void ShipConfig(SpriteObjects.Ship playerShip, SpriteObjects.Ship player2Ship) { this.mShip = playerShip; this.mShip2 = player2Ship; }