00001 /*************************************************************************** 00002 allowed_sets.h - description 00003 ------------------- 00004 begin : Mon Dec 3 2001 00005 copyright : (C) 2001 by Vlad Mereuta 00006 email : dizzy@deity.fsnet.co.uk 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 #ifdef HAVE_CONFIG_H 00018 #include "config.h" 00019 #endif 00020 00021 #ifndef ALLOWED_SETS_H 00022 #define ALLOWED_SETS_H 00023 00024 #include <vector> 00025 #include <string> 00026 00027 #include <dalt_client/entity.h> 00028 00029 namespace DALT_Client { 00030 00036 class AllowedSets 00037 { 00038 public: 00041 struct Pair { 00042 vector<string> targets; 00043 vector<string> sources; 00044 }; 00046 vector<Pair> sets; 00047 00049 AllowedSets(); 00051 ~AllowedSets(); 00052 00054 void addPair(Pair& p); 00055 00060 bool canPerform(Entity* originator, Entity* target); 00061 }; 00062 00063 } 00064 00065 #endif
1.2.8 written by Dimitri van Heesch,
© 1997-2001