Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nodes = [_representation_ nodesForXPath:@"cells/cell" error:nil];
- for( NSXMLNode *node in nodes ) {
- NSXMLElement *element = (NSXMLElement *)node;
- NSXMLNode *attributeNode;
- attributeNode = [element attributeForName:@"col"];
- int col = [[attributeNode stringValue] intValue];
- attributeNode = [element attributeForName:@"row"];
- int row = [[attributeNode stringValue] intValue];
- ELHex *hex = [self hexAtColumn:col row:row];
- [hex initWithXmlRepresentation:element parent:self player:_player_];
- }
Add Comment
Please, Sign In to add comment