From a6a5cb705dfad62eeda6fb6ac64b06b80beb7845 Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Fri, 13 Mar 2026 23:11:41 +0100 Subject: [PATCH] Reorganize weapons Signed-off-by: Hans Kokx --- lib/features/player/player.dart | 2 +- lib/features/weapon/{weapons => }/weapon.dart | 0 lib/features/weapon/weapons/knife.dart | 2 +- lib/features/weapon/weapons/machine_gun.dart | 2 +- lib/features/weapon/weapons/pistol.dart | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename lib/features/weapon/{weapons => }/weapon.dart (100%) diff --git a/lib/features/player/player.dart b/lib/features/player/player.dart index a5af355..e7882bd 100644 --- a/lib/features/player/player.dart +++ b/lib/features/player/player.dart @@ -2,10 +2,10 @@ import 'dart:math' as math; import 'package:wolf_dart/classes/linear_coordinates.dart'; import 'package:wolf_dart/features/entities/collectible.dart'; +import 'package:wolf_dart/features/weapon/weapon.dart'; import 'package:wolf_dart/features/weapon/weapons/knife.dart'; import 'package:wolf_dart/features/weapon/weapons/machine_gun.dart'; import 'package:wolf_dart/features/weapon/weapons/pistol.dart'; -import 'package:wolf_dart/features/weapon/weapons/weapon.dart'; class Player { // Spatial diff --git a/lib/features/weapon/weapons/weapon.dart b/lib/features/weapon/weapon.dart similarity index 100% rename from lib/features/weapon/weapons/weapon.dart rename to lib/features/weapon/weapon.dart diff --git a/lib/features/weapon/weapons/knife.dart b/lib/features/weapon/weapons/knife.dart index bf9bcae..8933217 100644 --- a/lib/features/weapon/weapons/knife.dart +++ b/lib/features/weapon/weapons/knife.dart @@ -1,4 +1,4 @@ -import 'package:wolf_dart/features/weapon/weapons/weapon.dart'; +import 'package:wolf_dart/features/weapon/weapon.dart'; class Knife extends Weapon { Knife() diff --git a/lib/features/weapon/weapons/machine_gun.dart b/lib/features/weapon/weapons/machine_gun.dart index dfcbf4e..d2ea1c4 100644 --- a/lib/features/weapon/weapons/machine_gun.dart +++ b/lib/features/weapon/weapons/machine_gun.dart @@ -1,4 +1,4 @@ -import 'package:wolf_dart/features/weapon/weapons/weapon.dart'; +import 'package:wolf_dart/features/weapon/weapon.dart'; class MachineGun extends Weapon { MachineGun() diff --git a/lib/features/weapon/weapons/pistol.dart b/lib/features/weapon/weapons/pistol.dart index 3d77ead..4d57b94 100644 --- a/lib/features/weapon/weapons/pistol.dart +++ b/lib/features/weapon/weapons/pistol.dart @@ -1,4 +1,4 @@ -import 'package:wolf_dart/features/weapon/weapons/weapon.dart'; +import 'package:wolf_dart/features/weapon/weapon.dart'; class Pistol extends Weapon { Pistol()