C# Class PacManDuel.Helpers.TurnMarshaller

Show file Open project: EntelectChallenge/2014-PacMan-TestHarness

Public Methods

Method Description
ProcessMove ( Maze currentMaze, Maze previousMaze, Point currentPosition, Point previousPosition, Point opponentPosition, Player currentPlayer ) : Enums.TurnOutcome

Private Methods

Method Description
IsMoveMadeAndDiedFromPoisonPill ( Maze previousMaze, Point currentPosition ) : bool
IsMoveMadeAndDroppedPoisonPill ( Maze currentMaze, Point previousPosition ) : bool
IsMoveMadeAndKilledOpponent ( Point currentPosition, Point opponentPosition ) : bool
IsMoveMadeAndScoredBonusPoint ( Maze previousMaze, Point currentPosition ) : bool
IsMoveMadeAndScoredPoint ( Maze previousMaze, Point currentPosition ) : bool

Method Details

ProcessMove() public static method

public static ProcessMove ( Maze currentMaze, Maze previousMaze, Point currentPosition, Point previousPosition, Point opponentPosition, Player currentPlayer ) : Enums.TurnOutcome
currentMaze PacManDuel.Models.Maze
previousMaze PacManDuel.Models.Maze
currentPosition System.Drawing.Point
previousPosition System.Drawing.Point
opponentPosition System.Drawing.Point
currentPlayer PacManDuel.Models.Player
return Enums.TurnOutcome