X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=action.h;h=40e2db3137e4481e7adcad2be73f3ec75ed8a0f2;hp=32d91220888a23a0bbc9fc814433b9c5a30b84e0;hb=HEAD;hpb=39f1842c8e2e482ce110f2fda486c31750a0b85f 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.