From c21cad83343d67ed2827d67bf90e7f6353482980 Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 10 Mar 2022 13:17:06 +0000 Subject: [PATCH] docs: documented wall.dart --- lib/game/components/wall.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/game/components/wall.dart b/lib/game/components/wall.dart index b784b8cb..6250bda2 100644 --- a/lib/game/components/wall.dart +++ b/lib/game/components/wall.dart @@ -6,13 +6,18 @@ import 'package:pinball/game/components/components.dart'; /// {@template wall} /// A continuos generic and [BodyType.static] barrier that divides a game area. /// {@endtemplate} +// TODO(alestiago): Remove [Wall] for [Pathway.straight]. class Wall extends BodyComponent { + /// {@macro wall} Wall({ required this.start, required this.end, }); + /// The [start] of the wall. final Vector2 start; + + /// The [end] of the wall. final Vector2 end; @override @@ -39,6 +44,7 @@ class Wall extends BodyComponent { /// [BottomWallBallContactCallback]. /// {@endtemplate} class BottomWall extends Wall { + /// {@macro bottom_wall} BottomWall(Forge2DGame game) : super( start: game.screenToWorld(game.camera.viewport.effectiveSize),