File: ReactorViewDelegate.m

package info (click to toggle)
gridlock.app 1.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,556 kB
  • sloc: objc: 10,334; ansic: 669; makefile: 12
file content (24 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (7)
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