add some documentation

This commit is contained in:
2023-12-17 22:00:42 +01:00
parent f87712e8d2
commit 7ac3b76e6c
2 changed files with 19 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ pub trait Artifact {
fn get_immutable_position(&self) -> &Position;
/// call to apply the effects of the artifact to the player
fn collect(&mut self, player: &mut Player);
/// returns if the artifact was collected and can be removed from the level
fn was_collected(&self) -> bool;
}