Exemplo n.º 1
0
 public TalkToSend(Talk talk)
 {
     Idx = talk.Idx;
     Day = talk.Day;
     Agent = talk.Agent.AgentIdx;
     Content = talk.Content;
 }
Exemplo n.º 2
0
 public void AddWhisper(Agent agent, Talk whisper)
 {
     WhisperList.Add(whisper);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Check is talk after lastTalk.
 /// <para>If it is same, return false.</para>
 /// </summary>
 /// <param name="talk"></param>
 /// <param name="lastTalk"></param>
 /// <returns></returns>
 private bool IsAfter(TalkToSend talk, Talk lastTalk)
 {
     if (lastTalk != null)
     {
         if (talk.Day < lastTalk.Day)
         {
             return false;
         }
         if (talk.Day == lastTalk.Day && talk.Idx <= lastTalk.Idx)
         {
             return false;
         }
     }
     return true;
 }
Exemplo n.º 4
0
 public void AddTalk(Agent agent, Talk talk)
 {
     TalkList.Add(talk);
 }