예제 #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);
 }