Exemplo n.º 1
0
 public void OnPlayerEntered()
 {
     room.Show();
     for (int i = 0; i < edges.Length; i++)
     {
         edges[i].OnPlayerEntered();
     }
 }
Exemplo n.º 2
0
 public void OnPlayerEntered()
 {
     room.MarkVisitted();
     room.Show();
     for (int i = 0; i < edges.Length; ++i)
     {
         edges[i].OnPlayerEntered();
     }
 }
Exemplo n.º 3
0
 public void OnPlayerEntered(string newRole, MazeDirection direction)
 {
     role = newRole;
     room.Show();
     foreach (Patrol listner in patrolListeners)
     {
         listner.React(coord);
     }
 }
    /// <summary>
    /// Player entered a cell.
    /// </summary>
    public void OnPlayerEntered()
    {
        Room.Show();

        foreach (MazeCellEdge edge in _edges)
        {
            edge.OnPlayerEntered();
        }
    }
Exemplo n.º 5
0
 public void OnPlayerEntered()
 {
     for (int i = 0; i < edges.Length; i++)
     {
         if (edges [i] != null)
         {
             edges [i].OnPlayerEntered();
         }
     }
     room.Show();
 }