-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPellet.cs
38 lines (32 loc) · 827 Bytes
/
Pellet.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
using System;
using SplashKitSDK;
public class Pellet
{
private Point2D _Position; // position of pellet
private int _WidthHeight; // pellet width and height
private bool _SuperPellet; // standard or super sized
private Color _Colour; // pellet colour
public Point2D Position
{
get { return _Position; }
}
public bool SuperPellet
{
get { return _SuperPellet; }
}
public Color Colour
{
get { return _Colour; }
}
public int WidthHeight
{
get { return _WidthHeight; }
}
public Pellet(Point2D position, bool super)
{
_Position = position;
_SuperPellet = super;
_WidthHeight = (super) ? 4 : 2; // set pellet height to 4 if super, 2 if normal
_Colour = Color.RGBColor(245, 185, 171);
}
}