cleared up gfx + ph storage
This commit is contained in:
+1
-2
@@ -13,9 +13,8 @@ use std::time;
|
||||
#[test]
|
||||
fn test_reach_astar() {
|
||||
let mut board = init_screen(); //Screen::new(40,40);
|
||||
let mut world = World::new();
|
||||
let mut world = World::new(&Point(board.max_x, board.max_y));
|
||||
|
||||
world.clear(Point(0, 0));
|
||||
let mut entities = Entities::new();
|
||||
|
||||
let a = Ant::new(0, 0);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use antf::lib::screen::init_screen;
|
||||
use antf::lib::world::{World, simulate, render};
|
||||
use antf::lib::entity::{Entities, FoodGenerator};
|
||||
use antf::lib::point::Point;
|
||||
|
||||
use ncurses::*;
|
||||
use std::thread::sleep;
|
||||
@@ -9,7 +10,7 @@ use std::time;
|
||||
#[test]
|
||||
fn test_foodgen() {
|
||||
let mut board = init_screen();
|
||||
let mut world = World::new();
|
||||
let mut world = World::new(&Point(board.max_x, board.max_y));
|
||||
|
||||
let mut entities = Entities::new();
|
||||
let fg = FoodGenerator::new();
|
||||
|
||||
Reference in New Issue
Block a user