1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
//
// ReactorViewDelegate.m
// Gridlock
//
// Created by Brian on Tue Feb 17 2004.
// Copyright (c) 2004 __MyCompanyName__. All rights reserved.
//
#import "ReactorViewDelegate.h"
#import "ImageStore.h"
@implementation ReactorViewDelegate
-(BOOL)drawCellWithValue:(int)value atRow:(int)row column:(int)col inRect:(NSRect)rect forGame:(id)game {
if (value<0) {
NSRect centerRect = NSInsetRect(rect,rect.size.width/3,rect.size.height/3);
[[NSColor redColor] set];
[[NSBezierPath bezierPathWithOvalInRect:centerRect] fill];
return YES;
}
return NO;
}
@end
|