| 1065 | } |
| 1066 | |
| 1067 | static GameValue ListIsIn(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 1068 | { |
| 1069 | const GameArrayType& array = oper2; |
| 1070 | for (int i = 0; i < array.Size(); i++) |
| 1071 | { |
| 1072 | const GameValue& val = array[i]; |
| 1073 | if (val.IsEqualTo(oper1)) |
| 1074 | { |
| 1075 | return true; |
| 1076 | } |
| 1077 | } |
| 1078 | return false; |
| 1079 | } |
| 1080 | |
| 1081 | static GameValue ListFind(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 1082 | { |