Skip to content

Commit

Permalink
src/visualize.rs: Made most of the functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkriff committed Nov 15, 2017
1 parent e7d1d01 commit 3b6f147
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/visualize.rs
Expand Up @@ -13,7 +13,7 @@ use core::execute::Phase;
use game_view::GameView;
use map;

pub fn message(view: &mut GameView, context: &mut Context, pos: PosHex, text: &str) -> Box<Action> {
fn message(view: &mut GameView, context: &mut Context, pos: PosHex, text: &str) -> Box<Action> {
let visible = [0.0, 0.0, 0.0, 1.0];
let invisible = [0.0, 0.0, 0.0, 0.0];
let mut sprite = gui::text_sprite(context, text, 0.1);
Expand All @@ -38,7 +38,7 @@ pub fn message(view: &mut GameView, context: &mut Context, pos: PosHex, text: &s
]))))
}

pub fn show_blood_spot(view: &mut GameView, context: &mut Context, at: PosHex) -> Box<Action> {
fn show_blood_spot(view: &mut GameView, context: &mut Context, at: PosHex) -> Box<Action> {
let mut blood = Sprite::from_path(context, "blood.png", view.tile_size() * 2.0);
blood.set_color([1.0, 1.0, 1.0, 0.0]);
let mut point = map::hex_to_point(view.tile_size(), at);
Expand Down Expand Up @@ -112,7 +112,7 @@ fn generate_brief_obj_info(
Box::new(action::Sequence::new(actions))
}

pub fn showhide_brief_unit_info(
fn showhide_brief_unit_info(
state: &State,
view: &mut GameView,
context: &mut Context,
Expand Down Expand Up @@ -141,7 +141,7 @@ pub fn visualize(
}
}

pub fn visualize_pre(
fn visualize_pre(
state: &State,
view: &mut GameView,
context: &mut Context,
Expand All @@ -157,7 +157,7 @@ pub fn visualize_pre(
Box::new(action::Sequence::new(actions))
}

pub fn visualize_post(
fn visualize_post(
state: &State,
view: &mut GameView,
context: &mut Context,
Expand All @@ -173,7 +173,7 @@ pub fn visualize_post(
Box::new(action::Sequence::new(actions))
}

pub fn visualize_event(
fn visualize_event(
state: &State,
view: &mut GameView,
context: &mut Context,
Expand Down Expand Up @@ -295,7 +295,7 @@ fn visualize_event_begin_turn(
]))
}

pub fn visualize_effect(
fn visualize_effect(
state: &State,
view: &mut GameView,
context: &mut Context,
Expand Down

0 comments on commit 3b6f147

Please sign in to comment.