-
Notifications
You must be signed in to change notification settings - Fork 0
/
TakeDown.cs
73 lines (65 loc) · 2.21 KB
/
TakeDown.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//using System;
//using System.Collections.Generic;
//using System.Drawing;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//namespace KosmiczniNajeźdźcy
//{
// internal class TakeDown
// {
// ShootingEntity killer;
// ShootingEntity victim;
// Tombstone tombstone = null;
// public TakeDown(ShootingEntity killer, ShootingEntity victim)
// {
// this.killer = killer;
// this.victim = victim;
// }
// public void DrawTombstone(Graphics g, Point pos)
// {
// if (tombstone == null)
// {
// tombstone = new Tombstone(victim.Squares, pos);
// }
// tombstone.Refresh(g);
// }
// private class Tombstone : IDrawable
// {
// List<List<Square>> graphics;
// static readonly int size = 2;
// static readonly Color color = Color.DarkGray;
// private bool isVisible = true;
// Point pos;
// public Tombstone(List<List<Square>> sourceGraphics, Point pos)
// {
// graphics = new List<List<Square>>(sourceGraphics.Count());
// for (int x = 0; x < sourceGraphics.Count(); x++)
// {
// for (int y = 0; y < sourceGraphics[x].Count(); y++)
// {
// if (sourceGraphics[x][y].Color == Color.Transparent)
// {
// graphics[x].Add(new Square(size, Color.Transparent, x, y));
// }
// else
// {
// graphics[x].Add(new Square(size, color, x, y));
// }
// }
// }
// this.pos = pos;
// }
// public void Refresh(Graphics g)
// {
// for (int x = 0; x < graphics.Count(); x++)
// {
// for (int y = 0; y < graphics[x].Count(); y++)
// {
// graphics[x][y].Draw(g, pos.X, pos.Y);
// }
// }
// }
// }
// }
//}