Пример #1
0
 public abstract void Perform(GameThing source, GameThing target);
Пример #2
0
 /// <summary>
 /// Determines whether this instance has access the specified thing.
 /// </summary>
 /// <returns><c>true</c> if this instance has access the specified thing; otherwise, <c>false</c>.</returns>
 /// <param name="thing">Thing.</param>
 public abstract bool HasAccess(GameThing thing);
Пример #3
0
 public override bool HasAccess(GameThing thing)
 {
     return(false);            // observers own nothing in the game session
 }
Пример #4
0
 public override bool HasAccess(GameThing thing)
 {
     // an admin has acces to all things
     return(true);
 }
Пример #5
0
 public override bool HasAccess(GameThing thing)
 {
     return(thing.Owner == this);
 }
Пример #6
0
 /// <summary>
 /// over ride this if the game allows blockage of sight (line of sight)
 /// </summary>
 /// <returns><c>true</c> if this instance can see the specified source target; otherwise, <c>false</c>.</returns>
 /// <param name="source">Source.</param>
 /// <param name="target">Target.</param>
 public virtual bool CanSee(GameThing source, GameThing target)
 {
     return(false);
 }
Пример #7
0
 public void RemoveThing(GameThing gt)
 {
     Messenger.Emit(GameMessages.Kind.ThingRemoved.ToString(), gt);
     m_thingList.Add(gt);
 }
Пример #8
0
 public void AddThing(GameThing gt)
 {
     m_thingList.Add(gt);
     Messenger.Emit(GameMessages.Kind.ThingAdded.ToString(), gt);
 }