Example #1
0
 public override void GetMessage(string message, BaseCharacter fromCharacter)
 {
     Console.WriteLine($"学生 {Name}收到 {fromCharacter.Name}发送的消息:{message}");
 }
 public void AddCharactor(BaseCharacter baseCharacter)
 {
     _baseCharacters.Add(baseCharacter);
 }
Example #3
0
 public override void SendMessage(string message, BaseCharacter toCharacter)
 {
     Console.WriteLine($"学生 {Name}向 {toCharacter.Name}发送消息:{message}");
     toCharacter.GetMessage(message, this);
 }