Ejemplo n.º 1
0
        ///<summary>
        /// Retrieves the Type field</summary>
        /// <returns>Returns nullable Goal enum representing the Type field</returns>
        new public Goal?GetType()
        {
            object obj   = GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
            Goal?  value = obj == null ? (Goal?)null : (Goal)obj;

            return(value);
        }
Ejemplo n.º 2
0
 public PongPlayer(
     IPlayerController player,
     Paddles position,
     IParticleEngine particleEngine,
     PlayerName playerName,
     Goal?goal             = null,
     Paddles?statsPosition = null,
     PongPlayerState?state = null)
 {
     State          = state ?? new PongPlayerState();
     _statsPosition = statsPosition;
     State.Position = position;
     Paddle         = new Paddle(player, particleEngine, State.PaddleState)
     {
         PlayerName = playerName, Speed = 300
     };
     Goal        = goal ?? new Goal(State.GoalState);
     PlayerStats = new PlayerStats(State.StatsState);
     PlayerStats.State.PlayerName = playerName;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Set Type field</summary>
 /// <param name="type_">Nullable field value to be set</param>
 public void SetType(Goal?type_)
 {
     SetFieldValue(4, 0, type_, Fit.SubfieldIndexMainField);
 }