Skip to content

Commit 45b80ff

Browse files
committed
Badges + another library for HTNs
1 parent 36f9c2f commit 45b80ff

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
# Data-Oriented, Goal-Oriented Action Planning
1+
# Data-Oriented GOAP (Goal-Oriented Action Planning)
22
> AKA DOGOAP - GOAP implemented in data-oriented way to facilitate dynamically setting up states/actions/goals rather than only at compile-time
33
44
> Includes bevy_dogoap which provides a neat Bevy integration of the dogoap library
55
6+
[![License](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](https://github.com/victorb/dogoap#License)
7+
[![Crates.io](https://img.shields.io/crates/v/dogoap.svg)](https://crates.io/crates/dogoap)
8+
[![Downloads](https://img.shields.io/crates/d/dogoap.svg)](https://crates.io/crates/dogoap)
9+
[![Docs](https://docs.rs/dogoap/badge.svg)](https://docs.rs/dogoap/latest/dogoap/)
10+
[![ci](https://github.com/victorb/dogoap/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/victorb/dogoap/actions/workflows/ci.yml)
11+
612
## Documentation
713

814
- [`dogoap`](./crates/dogoap/README.md) docs - Standalone library for creation actions, states and goals to be used with the provided planner
@@ -12,6 +18,7 @@
1218

1319
- https://github.com/skyne98/soap - A lot of inspiration taken from this repository, biggest difference is the data-oriented structure that dogoap has
1420
- https://github.com/dmackdev/bevy_goap - Native Bevy GOAP library, API interface isn't ideal though
21+
- https://github.com/QueenOfSquiggles/bevy_htnp - Native Bevy HTN (Hierarchical Task Network) library
1522

1623
## License
1724

crates/bevy_dogoap/examples/resman.rs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,24 @@
1717

1818
/* Sequence Diagram for the full flow of actions (paste into https://sequencediagram.org/)
1919
20-
Customer->Customer: Check thirst
21-
Customer->Serve Desk: GoToServeDesk
22-
23-
Worker->Serve Desk: GoToServeDesk
24-
Customer->Serve Desk: Create Order
25-
26-
Worker->Lemonade Maker: Produce Lemonade
27-
Lemonade Maker->Worker: Produced Lemonade
28-
29-
Worker->Serve Desk: Complete Order
30-
Customer<-Serve Desk: Pickup Order
31-
Customer->Customer: Drink Lemonade
20+
Customer->Order Desk: GoToOrderDesk
21+
Order Desk->Worker: RequestWorker
22+
Worker->Order Desk: GoToOrderDesk
23+
Customer->Order Desk: PlaceOrder
24+
Worker->Order Desk: TakeOrder
25+
Customer->Order Desk: WaitForOrder
26+
Worker->Lemonade Maker: GoToLemonadeMaker
27+
Lemonade Maker->Worker: MakeLemonade
28+
Worker->Order Desk: FinishOrder
29+
Customer->Order Desk: PickupLemonade
30+
Customer->Customer: DrinkLemonade
3231
3332
*/
3433

3534
use std::collections::{HashMap, VecDeque};
3635

3736
use bevy::{color::palettes::css::*, input::common_conditions::input_toggle_active, prelude::*};
3837
use bevy_dogoap::prelude::*;
39-
use bevy_inspector_egui::quick::WorldInspectorPlugin;
4038

4139
fn main() {
4240
let mut app = App::new();
@@ -80,7 +78,6 @@ fn main() {
8078
..default()
8179
}))
8280
.add_plugins(DogoapPlugin)
83-
.add_plugins(WorldInspectorPlugin::default().run_if(input_toggle_active(false, KeyCode::KeyI)))
8481
.add_systems(Startup, setup)
8582
.add_systems(Update, (draw_state_debug, draw_ui))
8683
// Systems that always affects needs

0 commit comments

Comments
 (0)