-
Notifications
You must be signed in to change notification settings - Fork 2
/
GameState.cs
42 lines (36 loc) · 950 Bytes
/
GameState.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
using Deadline;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows;
/// <summary>
/// Base for objects in game state (such as drones etc.).
/// </summary>
public abstract class GameStateObject
{
public GameState Game;
public int Id;
public GameStateObject(GameState game, int id)
{
Game = game;
Id = id;
}
}
public class Unit : GameStateObject
{
public Point Point = new Point(0, 0);
public double X { get { return Point.X; } set { Point.X = value; } }
public double Y { get { return Point.Y; } set { Point.Y = value; } }
public virtual bool CollisionWith(Unit b) { return false; }
public Unit(GameState g, int id) : base(g, id) { }
}
public class GameState
{
public static readonly int LevelNumber = 1;
public GameState()
{
//var data = Console.ReadLine().ParseList<int>();
}
}