Ejemplo n.º 1
0
 public abstract void Perform(GameThing source, GameThing target);
Ejemplo n.º 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);
Ejemplo n.º 3
0
 public override bool HasAccess(GameThing thing)
 {
     return(false);            // observers own nothing in the game session
 }
Ejemplo n.º 4
0
 public override bool HasAccess(GameThing thing)
 {
     // an admin has acces to all things
     return(true);
 }
Ejemplo n.º 5
0
 public override bool HasAccess(GameThing thing)
 {
     return(thing.Owner == this);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
 public void RemoveThing(GameThing gt)
 {
     Messenger.Emit(GameMessages.Kind.ThingRemoved.ToString(), gt);
     m_thingList.Add(gt);
 }
Ejemplo n.º 8
0
 public void AddThing(GameThing gt)
 {
     m_thingList.Add(gt);
     Messenger.Emit(GameMessages.Kind.ThingAdded.ToString(), gt);
 }