more clean up
This commit is contained in:
parent
a1579442e1
commit
62565bd2d1
|
@ -122,7 +122,7 @@ impl<'a> App<'a> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn draw_initial<B: Backend>(&mut self, f: &mut Frame<B>) {}
|
pub fn draw_initial<B: Backend>(&mut self, _f: &mut Frame<B>) {}
|
||||||
|
|
||||||
pub fn draw_guest_selection<B: Backend>(&mut self, f: &mut Frame<B>) {
|
pub fn draw_guest_selection<B: Backend>(&mut self, f: &mut Frame<B>) {
|
||||||
let chunks = Layout::default()
|
let chunks = Layout::default()
|
||||||
|
|
|
@ -69,6 +69,7 @@ impl Creature {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn set_agenda(&mut self, agenda: Agenda) {
|
pub fn set_agenda(&mut self, agenda: Agenda) {
|
||||||
self.agenda = agenda;
|
self.agenda = agenda;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use std::rc::Rc;
|
|
||||||
|
|
||||||
use crate::{state::{GameState, Action}, site::{Structure, Tavern, Site}, entity::{Location, Entity}};
|
use crate::{state::{GameState, Action}, site::{Structure, Tavern, Site}, entity::{Location, Entity}};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::rc::Rc;
|
|
||||||
|
|
||||||
use rand::prelude::*;
|
use rand::prelude::*;
|
||||||
use crate::entity::{Location, EntityId};
|
use crate::entity::{Location, EntityId};
|
||||||
|
@ -35,6 +34,7 @@ pub trait Action {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Event {
|
impl Event {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn description(&self) -> String {
|
pub fn description(&self) -> String {
|
||||||
format!("{}: {}", self.time, self.effect.description())
|
format!("{}: {}", self.time, self.effect.description())
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{rc::Rc, collections::HashMap, fmt};
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use crate::{generators::TownNameGenerator, entity::{Location, Entity, EntityId}, site::Site};
|
use crate::{entity::{Location, EntityId}, site::Site};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum Terrain {
|
pub enum Terrain {
|
||||||
|
|
Loading…
Reference in New Issue