-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLogicBlock.cs
52 lines (47 loc) · 1.13 KB
/
LogicBlock.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Diagnostics;
namespace Speechtrix
{
public class LogicBlock
{
public short nr
{
set { bl = blocks.getBlock(value); }
get { return bl.id; }
}
public short x { get; set; }
public short y { get; set; }
public short bxs;
public short bys;
public bool movable { get; set; }
private short _state;
public short state
{
set
{
_state = value;
bxs = Blocks.sizes[0][nr, _state];
bys = Blocks.sizes[1][nr, _state];
}
get
{
return _state;
}
}
public Color color {
get { return bl.color; }
set { }
}
static Blocks blocks = new Blocks();
Block bl = blocks.getBlock(0);
public bool[,] getState()
{
return Blocks.getRotations(nr, state);
}
}
}