public AlienShip(MatrixPosition topLeft, MatrixPosition speed) : base(topLeft, new char[, ] { { '@' } }, speed) { this.framesPerMove = 5; }
public Cursor(MatrixPosition topLeft) : base(topLeft, new char[, ] { { '>', '>' } }) { this.isActive = false; }
public MovingObject(MatrixPosition topLeft, char[,] image, MatrixPosition speed) : base(topLeft, image) { this.currentFrame = 0; this.framesPerMove = 1; this.Speed = speed; }
public GiftPoints(MatrixPosition topLeft, MatrixPosition speed) : base(topLeft, new char[, ] { { '$' } }, speed) { this.framesPerMove = 5; }
public AlienMasterShip(MatrixPosition topLeft, MatrixPosition speed) : base(topLeft, speed) { base.image = new char[, ] { { '?' } }; this.life = 2; }
public HiveShip(MatrixPosition topLeft, MatrixPosition speed) : base(topLeft, speed) { base.image = new char[, ] { { '&' } }; this.life = 5; }
public DieHardAlien(MatrixPosition topLeft, MatrixPosition speed) : base(topLeft, speed) { base.image = new char[, ] { { '~' } }; this.life = 3; }
protected PlayerShip(MatrixPosition topLeft) : base(topLeft, new char[, ] { { '^' } }) { this.isShooting = false; this.life = 3; this.Score = 0; }
public static PlayerShip Instance(MatrixPosition position) { if (instance == null) { instance = new PlayerShip(position); } return(instance); }
protected GameObject(MatrixPosition topLeft, char[,] image) { this.TopLeft = topLeft; int imageRows = image.GetLength(0); int imageCols = image.GetLength(1); this.image = this.CopyImageMatrix(image); this.IsDestroyed = false; }
public GameInformation(MatrixPosition topLeft, string msg) : base(topLeft, new char[, ] { { 'a' } }) { char[] msgArr = msg.ToCharArray(); this.image = new char[1, msgArr.Length]; for (int i = 0; i < msgArr.Length; i++) { this.image[0, i] = msgArr[i]; } this.topLeft = topLeft; }
public void EnqueueForRendering(IRenderable obj) { char[,] objImage = obj.GetImage(); int imageRows = objImage.GetLength(0); int imageCols = objImage.GetLength(1); MatrixPosition objTopLeft = obj.GetPosition(); int lastRow = Math.Min(objTopLeft.Row + imageRows, this.renderContextMatrixRows); int lastCol = Math.Min(objTopLeft.Col + imageCols, this.renderContextMatrixCols); for (int row = obj.GetPosition().Row; row < lastRow; row++) { for (int col = obj.GetPosition().Col; col < lastCol; col++) { if (row >= 0 && row < renderContextMatrixRows && col >= 0 && col < renderContextMatrixCols) { renderContextMatrix[row, col] = objImage[row - obj.GetPosition().Row, col - obj.GetPosition().Col]; } } } }
public Exit(MatrixPosition topLeft) : base(topLeft, message) { }
public Wall(MatrixPosition topLeft) : base(topLeft, new char[, ] { { '#' } }) { }
public StartResume(MatrixPosition topLeft) : base(topLeft, message) { }
public override bool Equals(object obj) { MatrixPosition objAsMatrixCoords = obj as MatrixPosition; return(objAsMatrixCoords.Row == this.Row && objAsMatrixCoords.Col == this.Col); }
public Projectile(MatrixPosition topLeft, MatrixPosition speed) : base(topLeft, new char[, ] { { '|' } }, speed) { }
public Lifes(MatrixPosition topLeft, string msg) : base(topLeft, msg) { }
protected MenuItem(MatrixPosition topLeft, char[,] message) : base(topLeft, message) { }
public Score(MatrixPosition topLeft, string msg) : base(topLeft, msg) { }
public Gift(MatrixPosition topLeft, char[,] image, MatrixPosition speed) : base(topLeft, image, speed) { this.framesPerMove = 5; }