diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-12-08 22:02:19 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-12-08 22:02:19 +0200 |
commit | 1e21ebed15321aacbba53121cb40bbc60f4db1cc (patch) | |
tree | 1d0f07ce61e138c717b96b9692bc2329bb590dd1 /src/engine/geometry.rs | |
parent | f6611aab7c696520d9be5dfe29303fd6e0ade0d7 (diff) |
Renamed variable to be more concise
Diffstat (limited to 'src/engine/geometry.rs')
-rw-r--r-- | src/engine/geometry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/geometry.rs b/src/engine/geometry.rs index b8b38dd..9cd1d90 100644 --- a/src/engine/geometry.rs +++ b/src/engine/geometry.rs @@ -24,7 +24,7 @@ impl Point { } pub fn new_double_bitfield(x: u8, y: u8, is_left_player: bool) -> (u64, u64) { - let bitfield = Point::new(x, y).to_either_bitfield(); + let bitfield = Point::new(x, y).to_bitfield(); if (x >= SINGLE_MAP_WIDTH) == is_left_player { (0, bitfield) } else { @@ -51,7 +51,7 @@ impl Point { * This involves mirroring the x dimension for the opponent's side */ - pub fn to_either_bitfield(self) -> u64 { + pub fn to_bitfield(self) -> u64 { 1u64 << self.index } } |