Skip to content

Instantly share code, notes, and snippets.

@itoz itoz/gist:856657
Created Mar 5, 2011

Embed
What would you like to do?
// ボタンイベントで配信された状態値が引数に渡される。obj["type"] が各キャラの状態値。
private function search(bit : uint) : Array{
var result : Array = [];
for (var i : int = 0; i < _arr.length; i++) {
var obj : Object = _arr[i];
if ((bit & parseInt(obj["type"], 2)) == bit)
result.push(node);
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.