babalcore 0.5.1

Babal core logic library, low-level things which are game-engine agnostic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::skill::*;

pub trait LevelQuery {
    fn width(&self) -> usize;
    fn len(&self) -> usize;
    fn first(&self) -> isize;
    fn last(&self) -> isize;
    fn item(&self, col: isize, row: isize, boost: bool) -> i64;
    fn find_start_spot(&self, col: isize, row: isize) -> Option<(isize, isize)>;
    fn skill(&self) -> Skill;
}