Exemplo n.º 1
0
 public void OnHideSpaceship(List <SpaceshipFragment> hero)
 {
     foreach (var element in hero)
     {
         ObjectsDrawing.Draw(element.X, element.Y, " ");
     }
 }
Exemplo n.º 2
0
 public void OnDrawBoss(List <SpaceshipFragment> boss)
 {
     ObjectsDrawing.Draw(boss[0].X, boss[0].Y, "<");
     ObjectsDrawing.Draw(boss[1].X, boss[1].Y, "-");
     ObjectsDrawing.Draw(boss[2].X, boss[2].Y, "/");
     ObjectsDrawing.Draw(boss[3].X, boss[3].Y, "|");
     ObjectsDrawing.Draw(boss[4].X, boss[4].Y, "#");
     ObjectsDrawing.Draw(boss[5].X, boss[5].Y, "C");
     ObjectsDrawing.Draw(boss[6].X, boss[6].Y, "<");
     ObjectsDrawing.Draw(boss[7].X, boss[7].Y, "-");
     ObjectsDrawing.Draw(boss[8].X, boss[8].Y, "\\");
 }
Exemplo n.º 3
0
 public void OnDrawHero(List <SpaceshipFragment> hero)
 {
     ObjectsDrawing.Draw(hero[0].X, hero[0].Y, "(");
     ObjectsDrawing.Draw(hero[1].X, hero[1].Y, "x");
     ObjectsDrawing.Draw(hero[2].X, hero[2].Y, "\\");
     ObjectsDrawing.Draw(hero[3].X, hero[3].Y, "=");
     ObjectsDrawing.Draw(hero[4].X, hero[4].Y, "@");
     ObjectsDrawing.Draw(hero[5].X, hero[5].Y, ">");
     ObjectsDrawing.Draw(hero[6].X, hero[6].Y, "(");
     ObjectsDrawing.Draw(hero[7].X, hero[7].Y, "x");
     ObjectsDrawing.Draw(hero[8].X, hero[8].Y, "/");
 }
Exemplo n.º 4
0
        public void OnDrawHealth(int pointX, int pointY, int health)
        {
            char healthPoint = Convert.ToChar(9829);

            for (int i = 0; i < health + 1; i++)
            {
                ObjectsDrawing.Draw(pointX + i, pointY, " ");
            }
            for (int i = 0; i < health; i++)
            {
                ObjectsDrawing.Draw(pointX + i, pointY, healthPoint.ToString());
            }
        }
Exemplo n.º 5
0
 public void OnGameScoreUpdate(int score, int pointX, int pointY)
 {
     ObjectsDrawing.Draw(pointX, pointY, score.ToString());
 }
Exemplo n.º 6
0
 public void OnEnemyDraw(int pointX, int pointY)
 {
     ObjectsDrawing.Draw(pointX, pointY, "<#");
 }
Exemplo n.º 7
0
 public void OnEnemyHide(int pointX, int pointY)
 {
     ObjectsDrawing.Draw(pointX, pointY, "  ");
 }
Exemplo n.º 8
0
 public void OnLaserDraw(int pointX, int pointY)
 {
     ObjectsDrawing.Draw(pointX, pointY, "-");
 }
Exemplo n.º 9
0
 public void OnLaserHide(int pointX, int pointY)
 {
     ObjectsDrawing.Draw(pointX, pointY, " ");
 }