Game playable

- game with only one big room
This commit is contained in:
2024-05-13 22:24:55 +02:00
parent a75aaa13c7
commit e569a78148
7 changed files with 312 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
use super::{
cell::{Confusion, Effect, InstantDamage},
entities::Decider,
entities::Behavior,
};
use serde::{Deserialize, Serialize};
use std::ops::Range;
@@ -52,7 +52,7 @@ pub struct ConfigPlayer {
pub struct ConfigEntity {
pub floors: Range<usize>,
pub name: String,
pub decider: Box<dyn Decider>,
pub decider: Box<dyn Behavior>,
pub health: i32,
pub attack: i32,
pub priority: usize,