-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added line-of-sight falloff and some more features (maybe)
- Loading branch information
Addison Schuhardt
committed
Sep 5, 2017
1 parent
36825bc
commit b6b6f13
Showing
7 changed files
with
127 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
/// Stores information pertaining to a single entity in the game's | ||
/// current state. | ||
//// | ||
/// Examples of entities include interactive objects, doors, ladders, etc. | ||
use mopa; | ||
use super::{Movable, Drawable, Map, Positioned}; | ||
use super::actor::ActorInfo; | ||
|
||
pub struct Entity {} | ||
/// Things that implement Entity are those which exist in the world but are not | ||
/// "alive". | ||
//// | ||
/// Examples include static props and areas of effect. | ||
pub trait Entity: mopa::Any + Movable + Positioned + Drawable { | ||
fn on_create(&mut self, map: &Map, actors: &[ActorInfo]); | ||
} | ||
mopafy!(Entity); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters