public EmotionalSuecaPlayer(string clientName, string scenarioPath, string agentType, string charactersNames = "") : base(clientName, charactersNames) { try { _nameId = Int16.Parse("" + clientName[clientName.Length - 1]); } catch (Exception) { _nameId = 1; } SetPublisher <ISuecaPublisher>(); SuecaPub = new SuecaPublisher(Publisher); _ai = null; _suecaRPC = new SuecaRolePlayCharacter(agentType, scenarioPath); _initialyzing = false; _robotHasPlayed = false; _agentType = agentType; }
public EmotionalSuecaPlayer(string clientName, string scenarioPath, string agentType, string charactersNames = "") : base(clientName, charactersNames) { try { _nameId = Int16.Parse("" + clientName[clientName.Length - 1]); } catch (Exception) { _nameId = 1; } _randomNumberGenerator = new Random(System.Guid.NewGuid().GetHashCode()); SetPublisher <ISuecaPublisher>(); SuecaPub = new SuecaPublisher(Publisher); _ai = null; _suecaRPC = new SuecaRolePlayCharacter(_nameId, agentType, scenarioPath, this); _initialyzing = false; _agentType = agentType; numRobots = 1; //default }