refactoring
This commit is contained in:
@@ -31,12 +31,13 @@
|
||||
//! [`take_board_queue`]: ScriptHost::take_board_queue
|
||||
//! [`GameState`]: crate::game::GameState
|
||||
|
||||
use crate::game::{Board, ObjectId};
|
||||
use crate::board::Board;
|
||||
use crate::log::LogLine;
|
||||
use rhai::{AST, CallFnOptions, Engine, FuncArgs, ImmutableString, NativeCallContext, Scope};
|
||||
use rhai::{CallFnOptions, Engine, FuncArgs, ImmutableString, NativeCallContext, Scope, AST};
|
||||
use std::cell::RefCell;
|
||||
use std::collections::{HashMap, HashSet, VecDeque};
|
||||
use std::rc::Rc;
|
||||
use crate::utils::ObjectId;
|
||||
|
||||
/// How long a move occupies an object before it can act again, in seconds.
|
||||
pub const MOVE_COST: f64 = 0.25;
|
||||
|
||||
Reference in New Issue
Block a user