Dead code
This commit is contained in:
parent
1160c5d143
commit
1bd27128ae
@ -62,6 +62,7 @@ impl Direction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
pub fn rot_ccw(self) -> Self {
|
pub fn rot_ccw(self) -> Self {
|
||||||
match self {
|
match self {
|
||||||
Self::North => Self::West,
|
Self::North => Self::West,
|
||||||
@ -70,6 +71,7 @@ impl Direction {
|
|||||||
Self::East => Self::North,
|
Self::East => Self::North,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
@ -124,9 +126,11 @@ impl FallingTetromino {
|
|||||||
self.direction = self.direction.rot_cw()
|
self.direction = self.direction.rot_cw()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
pub fn rotate_ccw(&mut self) {
|
pub fn rotate_ccw(&mut self) {
|
||||||
self.direction = self.direction.rot_ccw()
|
self.direction = self.direction.rot_ccw()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/// Returns the positions of this falling tetromino's tiles.
|
/// Returns the positions of this falling tetromino's tiles.
|
||||||
pub fn tiles(&self) -> [(usize, usize); 4] {
|
pub fn tiles(&self) -> [(usize, usize); 4] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user