Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarItemDrop.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-18 20:03:06 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-18 20:03:06 +1000
commitb51e174bdc158187fc110dc4a947946d3dc329c1 (patch)
treec1a61ba9edaa5ff0628f4275d16392ca12ddd4dd /source/game/StarItemDrop.hpp
parentab03c224dd154a4cce9cf60e20bb166e57f33d01 (diff)
Item drops inherit player velocity, other stuff
Diffstat (limited to 'source/game/StarItemDrop.hpp')
-rw-r--r--source/game/StarItemDrop.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarItemDrop.hpp b/source/game/StarItemDrop.hpp
index d88da73..e72878c 100644
--- a/source/game/StarItemDrop.hpp
+++ b/source/game/StarItemDrop.hpp
@@ -23,8 +23,8 @@ public:
// Create a drop and throw in the given direction with a hard-coded initial
// throw velocity (unrelated to magnitude of direction, direction is
// normalized first). Initially intangible for 1 second.
- static ItemDropPtr throwDrop(ItemPtr const& item, Vec2F const& position, Vec2F const& direction, bool eternal = false);
- static ItemDropPtr throwDrop(ItemDescriptor const& itemDescriptor, Vec2F const& position, Vec2F const& direction, bool eternal = false);
+ static ItemDropPtr throwDrop(ItemPtr const& item, Vec2F const& position, Vec2F const& velocity, Vec2F const& direction, bool eternal = false);
+ static ItemDropPtr throwDrop(ItemDescriptor const& itemDescriptor, Vec2F const& position, Vec2F const& velocity, Vec2F const& direction, bool eternal = false);
ItemDrop(ItemPtr item);
ItemDrop(Json const& diskStore);