Browse Subversion Repository
Diff of /Quantum/QuantumShogi/QuantumShogi.Logic/MoveDirection.cs
Parent Directory
| Revision Log
| Patch
| 33 |
this.IsLine = isLine; |
this.IsLine = isLine; |
| 34 |
} |
} |
| 35 |
|
|
|
MoveDirection upper = new MoveDirection(0, -1, false);//前進 |
|
|
MoveDirection upperLeft = new MoveDirection(1, -1, false);//左上 |
|
|
MoveDirection upperRight = new MoveDirection(-1, -1, true);//右上 |
|
|
MoveDirection down = new MoveDirection(0, 1, false);//下がる |
|
|
MoveDirection downLeft = new MoveDirection(1, 1, false); |
|
|
MoveDirection downRight = new MoveDirection(-1, 1, false); |
|
|
MoveDirection right = new MoveDirection(-1, 0, false); |
|
|
MoveDirection left = new MoveDirection(1, 0, false); |
|
| 36 |
|
|
|
//飛びききにはすぐ1歩動く方向は含めない。 |
|
|
//例えば香車は直進すると定義されるが、直進+一歩前進と重複して定義する。 |
|
|
MoveDirection straightUpper = new MoveDirection(0, -1, true);//前へ直進 |
|
|
MoveDirection straightUpperLeft = new MoveDirection(1, -1, false); |
|
|
MoveDirection straightUpperRight = new MoveDirection(-1, -1, true); |
|
|
MoveDirection straightDown = new MoveDirection(0, 1, false); |
|
|
MoveDirection straightDownLeft = new MoveDirection(1, 1, false); |
|
|
MoveDirection straightDownRight = new MoveDirection(-1, 1, false); |
|
|
MoveDirection straightRight = new MoveDirection(-1, 0, false); |
|
|
MoveDirection straightLeft = new MoveDirection(1, 0, false); |
|
|
|
|
|
MoveDirection upper2Left = new MoveDirection(1, -2, false);//桂馬飛び |
|
|
MoveDirection upper2Right = new MoveDirection(-1, -2, true);//桂馬飛び |
|
| 37 |
} |
} |
| 38 |
} |
} |
|
|
Legend:
| Removed from v.81 |
|
| changed lines |
| |
Added in v.82 |
|
|
| |