public IntArrayVariable IntArray(string name, params int[] values)
        {
            var variable = new IntArrayVariable();

            CodeGenerator.Instance.BindStaticVariableToNewRepresentation(variable, name, values);
            return(variable);
        }
Beispiel #2
0
 public HalCompletion(IntArrayVariable storage)
 {
     this.storage = storage;
 }
 public IntArrayVariable IntArray(string name, params int[] values)
 {
     var variable=new IntArrayVariable();
       CodeGenerator.Instance.BindStaticVariableToNewRepresentation(variable, name, values);
       return variable;
 }
Beispiel #4
0
    public static bool IsPlayerActive(TrawnPlayer player, IntArrayVariable currentPlayers)
    {
        var i = (int)player;

        return(Array.IndexOf(currentPlayers.Value, i) >= 0);
    }