rendered paste body // If it's a shape
if ([[currentCommand objectAtIndex:0] intValue] == 1 ||
[[currentCommand objectAtIndex:0] intValue] == 3 ||
[[currentCommand objectAtIndex:0] intValue] == 9 ||
[[currentCommand objectAtIndex:0] intValue] == 11)
{
// Set all the settings for the gridItem
GridItem *modified = [grid gridItemAtX:[[currentCommand objectAtIndex:2] intValue]
atY:19-[[currentCommand objectAtIndex:1] intValue]];
[modified setShape:shape];
[modified setX:[[currentCommand objectAtIndex:2] intValue]];
[modified setY:19-[[currentCommand objectAtIndex:1] intValue]];
[modified setColorWithRed:[[currentCommand objectAtIndex:3] intValue]
withGreen:[[currentCommand objectAtIndex:4] intValue]
withBlue:[[currentCommand objectAtIndex:5] intValue]];
/*if ([[currentCommand objectAtIndex:0] intValue] == 1) {
[modified setSize:[[currentCommand objectAtIndex:7] intValue]];
NSLog(@"Made it here: %d", [modified y]);
int j, k;
for (j = 0; j < [modified size]; j++)
{
for (k = 0; k < [modified size]; k++)
{
if (!(j == 0 && k == 0)) {
[[grid gridItemAtX:j+[modified x] atY:[modified y]-k] setShape:ItemNone];
[[grid gridItemAtX:j+[modified x] atY:[modified y]-k] setCovered:1];
[[grid gridItemAtX:j+[modified x] atY:[modified y]-k] setCoveredX:[modified x] Y:[modified y]];
}
}
}
}*/
//NSLog(@"made it here too");