blob: 25f30b20ef2df61f1a8caffc719253844ab08ded (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
pub use self::player::Player;
mod player;
pub(crate) trait Entity {
fn render_map(&self) -> std::collections::HashMap<crate::physics::Point, char>;
}
pub(crate) trait Controllable {
fn handle_input(&mut self, key: termion::event::Key) -> Option<crate::game::Command>;
}
|