OpenRA.Player.CanViewActor C# (CSharp) Method

CanViewActor() public method

public CanViewActor ( OpenRA.Actor a ) : bool
a OpenRA.Actor
return bool
        public bool CanViewActor(Actor a)
        {
            return a.CanBeViewedByPlayer(this);
        }

Usage Example

Example #1
0
 public bool FogObscures(Actor a)
 {
     return(RenderPlayer != null && !RenderPlayer.CanViewActor(a));
 }