Commit graph

67 commits

Author SHA1 Message Date
Sara
1599f3aaad chore: cleaned up order_activate_object_under_cursor with guard clause 2024-08-29 18:33:14 +02:00
Sara
78baddfdfb fix: temporary marker will now not exist when character is unconscious 2024-08-29 18:32:54 +02:00
Sara
628d9bf923 fix: units now visibly fall unconscious 2024-08-29 09:54:35 +02:00
Sara
51f86e363e chore: explicit functional-style cast of weapon_animation getter 2024-08-28 16:50:05 +02:00
Sara
2c5fdfcc3e chore: formatting update, removed _ argument name 2024-08-25 13:01:09 +02:00
Sara
2a0c9a623e feat: replaced separate melee and ranged actions with use weapon and get in range 2024-08-21 14:18:27 +02:00
Sara
c9c41ac2d7 feat: created character specializations of unit and world state 2024-08-18 17:42:20 +02:00
Sara
57622176cb chore: removed flyweight db debug print calls 2024-08-16 16:19:14 +02:00
Sara
c97742f992 fix: inventory is now a tool class 2024-08-16 16:18:46 +02:00
Sara
a05bc7cd67 chore: updated utils 2024-08-16 11:37:18 +02:00
Sara
44c0f88513 chore: forgot to make RTSGameMode a RUNTIME_CLASS 2024-08-16 11:36:31 +02:00
Sara
7ceea27259 feat: upgraded project to godot 4.3 2024-08-16 00:14:04 +02:00
Sara
a024aab203 feat: implemented item and inventory outline 2024-08-15 21:45:33 +02:00
Sara
f771b383f3 chore: fixed external includes being in quotes ipv angle brackets 2024-08-15 21:45:33 +02:00
Sara
75e73aba95 fix: MoveTo now avoids setting velocity after calling end_state 2024-08-15 21:45:33 +02:00
Sara
cd94bb164e feat: unit now guarantees it stays on the navmesh 2024-08-15 21:45:33 +02:00
Sara
d20da67bea feat: EnemyWorldState now queues re-planning 2024-08-15 21:45:33 +02:00
Sara
e71a27876d feat: increased visibility of various getters in goap::State 2024-08-15 21:45:33 +02:00
Sara
dc60937660 feat: improved take cover action node selection 2024-08-15 21:45:33 +02:00
Sara
2c21845991 feat: added print debug info interaction to player and unit 2024-08-15 21:45:33 +02:00
Sara
12069b6252 chore: fixed DEBUG_ENABLED endif tag 2024-08-15 21:45:01 +02:00
Sara
e1ebee99e1 feat: MoveTo state now uses Unit::movement_speed 2024-08-15 21:45:01 +02:00
Sara
cabaae949c feat: added unconscious event 2024-08-15 21:45:01 +02:00
Sara
d94b24f617 feat: added on_unconscious and movement speed to unit 2024-08-15 21:45:01 +02:00
Sara
973ba952c2 fix: general AI behaviour fixes 2024-08-15 21:45:00 +02:00
Sara
0de3390cf1 fix: unit movement is now operated by Unit class 2024-08-15 21:43:21 +02:00
Sara
693859e874 chore: removed unneeded print calls 2024-08-15 21:43:21 +02:00
Sara
5abab18a86 fix: get_editor_neighbours now actually gets editor neighbours 2024-08-15 21:43:21 +02:00
Sara
062ef478b4 chore(formatting): godot_cpp include now in angle brackets 2024-08-15 21:43:21 +02:00
Sara
40a93aec32 fix: #if changed to #ifdef for DEBUG_ENABLED check 2024-08-15 21:43:21 +02:00
Sara
0e8bcf4442 feat: units use navigation obstacle avoidance 2024-08-15 21:43:21 +02:00
Sara
111485437c bug(goap): fixed unexpected AI behaviour
- Death now removes entity from awareness
- State failure now causes replan or goal reevaluation
2024-08-15 21:43:21 +02:00
Sara
a2240797b8 fix: self preservation plan in the wrong order 2024-08-15 21:43:21 +02:00
Sara
4ba6869a30 feat: added debug prints to planner and actor world state 2024-08-15 21:43:21 +02:00
Sara
0bb0b26d3e feat: added Unit::has_plan 2024-08-15 21:43:21 +02:00
Sara
1b8563a5eb feat: added parent_ and target_ global_position world props 2024-08-15 21:43:20 +02:00
Sara
f9b3c6eb3f feat: implemented heal action and goal 2024-08-15 21:43:20 +02:00
Sara
a78bbfd3b5 feat: implemented melee attacks for Tank enemy 2024-08-15 21:43:20 +02:00
Sara
1021920e1f feat: added Goal::check_requirements_met 2024-08-15 21:43:20 +02:00
Sara
d03ce19c13 feat: unit now plays animation on death 2024-08-15 21:43:20 +02:00
Sara
65b0f76991 chore(style): changed brackets to match style 2024-08-15 21:43:20 +02:00
Sara
7cf5b128ff feat: implemented fire at target action 2024-08-15 21:43:20 +02:00
Sara
ffafcac23a feat: added state done functions to goap::State 2024-08-15 21:43:20 +02:00
Sara
d506a9c2d0 feat: removed goap::Planner::test_goal 2024-08-15 21:43:20 +02:00
Sara
bcf1672f01 feat: added get_eye_transform to unit 2024-08-15 21:43:20 +02:00
Sara
3c75b592d3 feat: now tracking current goal in unit 2024-08-15 21:43:20 +02:00
Sara
f2cf79d704 chore: removed debug print calls 2024-08-15 21:43:20 +02:00
Sara
51bd3733c4 feat: split end state callback into finished and failed 2024-08-15 21:43:20 +02:00
Sara
58a717aec4 feat: added on-target-destroyed callback to unit world state 2024-08-15 21:43:20 +02:00
Sara
6dddbced43 feat: changed distance check < to <= 2024-08-15 21:43:20 +02:00