diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-06T02·45-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-06T02·45-0400 |
commit | de081d7b1d0b791b2e61f9cde7369ea11647e0ae (patch) | |
tree | 687236ac6ca2d094053fa43112d967554531de86 /src/entities/character.rs |
an @-sign in a box
Diffstat (limited to 'src/entities/character.rs')
-rw-r--r-- | src/entities/character.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entities/character.rs b/src/entities/character.rs new file mode 100644 index 000000000000..e40b7b988e8d --- /dev/null +++ b/src/entities/character.rs @@ -0,0 +1,15 @@ +use crate::types::{Position, Speed}; + +const DEFAULT_SPEED: Speed = Speed(100); + +pub struct Character { + position: Position, +} + +impl Character { + pub fn speed(&self) -> Speed { + Speed(100) + } +} + +positioned!(Character); |