X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=action.h;h=40e2db3137e4481e7adcad2be73f3ec75ed8a0f2;hp=32d91220888a23a0bbc9fc814433b9c5a30b84e0;hb=eb070a26e716bd66a085beacc70a98a2e8fae0f7;hpb=685bd4bef24c3c10734c4d1382448f21b8b26e58 diff --git a/action.h b/action.h index 32d9122..40e2db3 100644 --- a/action.h +++ b/action.h @@ -6,8 +6,11 @@ #include #include +//! A list of strings, each string representing an effect. typedef std::vector Literals; +//! A map, but really a list of pairs, the precondition as a string, and a bool, true if it's a hard precondition, otherwise false. typedef __gnu_cxx::hash_map Preconditions; +//! A map from returnvalue of the execution to the effects achieved. typedef __gnu_cxx::hash_map EffectsMap; // These are needed to be able to use std::string as key in a hash_map.