Reorganized files

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-13 23:10:39 +01:00
parent 3086e5a8f4
commit a4bc6f8520
6 changed files with 15 additions and 14 deletions

View File

@@ -0,0 +1,23 @@
import 'package:wolf_dart/features/weapon/weapons/weapon.dart';
class Knife extends Weapon {
Knife()
: super(
name: "Knife",
idleSprite: 416,
fireFrames: [417, 418, 419, 420],
damage: 15,
msPerFrame: 120,
);
@override
bool fire(int currentTime, {required int currentAmmo}) {
if (state == WeaponState.idle) {
state = WeaponState.firing;
frameIndex = 0;
lastFrameTime = currentTime;
return true;
}
return false;
}
}