|
|
@ -14,6 +14,8 @@ pub struct Apr { |
|
|
|
dragging: bool, |
|
|
|
|
|
|
|
actors: Vec<actor::Actor>, |
|
|
|
|
|
|
|
#[allow(dead_code)] |
|
|
|
behaviours: Vec<behaviour::Behaviour>, |
|
|
|
} |
|
|
|
|
|
|
@ -67,6 +69,7 @@ impl Apr { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
#[allow(dead_code)] |
|
|
|
pub fn set_colour(&mut self, r: usize, c: usize, clr: u8) { |
|
|
|
//You should only modify self.board through this method.
|
|
|
|
self.board.board[r][c] = clr; //Making a getter for self.board would sadly break borrowing in the same way that closest_square_coords does.
|
|
|
|