X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fboll.rs;h=5d095633529e879bb501c1fd9702a5997573ca88;hb=e570927ad1703298a2c85599c7e25475c60b33d4;hp=abf6c879ebc81406479472fb974f6359114945cf;hpb=f3fe1a328df7ca0db89ddb14b7d45c3f16cea7fa;p=kaka%2Frust-sdl-test.git diff --git a/src/boll.rs b/src/boll.rs index abf6c87..5d09563 100644 --- a/src/boll.rs +++ b/src/boll.rs @@ -1,7 +1,7 @@ use core::render::Renderer; use sdl2::rect::Rect; -use common::Point2D; +use common::Point; use sdl2::gfx::primitives::DrawRenderer; use {SCREEN_HEIGHT, SCREEN_WIDTH}; @@ -11,8 +11,8 @@ pub trait Boll { } pub struct SquareBoll { - pub pos: Point2D, - pub vel: Point2D, + pub pos: Point, + pub vel: Point, } impl Boll for SquareBoll { @@ -56,7 +56,7 @@ pub struct CircleBoll { } impl CircleBoll { - pub fn new(pos: Point2D, vel: Point2D) -> CircleBoll { + pub fn new(pos: Point, vel: Point) -> CircleBoll { CircleBoll { boll: SquareBoll { pos, vel }, }