示例#1
0
        public Turn MakeTurn(LevelView levelView, IMessageReporter messageReporter)
        {
            if (levelView.Player.Location == levelView.Field.GetCellsOfType(CellType.PlayerStart).Single())
            {
                lvlCount++;
                slave = new Slave(ref levelView, messageReporter, lvlCount);
            }

            return(slave.SlaveObjectives.Peek()());
        }
示例#2
0
        static void Main(string[] args)
        {
            Import        import          = (Import)DeserializeObject(args[0]);
            Route         route           = (Route)DeserializeObject(args[1]);
            Process       process         = (Process)DeserializeObject(args[2]);
            string        url             = (string)DeserializeObject(args[3]);
            string        puppetMasterUrl = (string)DeserializeObject(args[4]);
            bool          logLevel        = (bool)DeserializeObject(args[5]);
            string        semantic        = (string)DeserializeObject(args[6]);
            List <string> siblings        = (List <string>)DeserializeObject(args[7]);
            bool          stateful        = (bool)DeserializeObject(args[8]);

            var slave = new Slave(import, route, process, url, puppetMasterUrl, logLevel, semantic, siblings, stateful);

            Console.Title = url;
            Console.ReadLine();
        }
 public UnfrozenState(Slave slave)
     : base(slave)
 {
 }
示例#4
0
 protected State(Slave slave)
 {
     _slaveObj = slave;
 }