| Sign In/My Account | View Cart |
| Article: |
Building a Game Engine with Cocoa, Part 2 | |
| Subject: | Incorrect Boolean login in NOTEQUAL_NSPOINTS? | |
| Date: | 2007-01-05 20:36:09 | |
| From: | Joe Jones | |
| It would seem to me that the equation there should be p1.x != p2.x ||p1.y != p2.y. This would be the equivalent of !EQUALS_NPOINTS(p1, p2). (1,2) and (3,4) would resolve to TRUE as expected but (1,2) and (3,2) would resolve to FALSE but are obviously not equal. | ||
Showing messages 1 through 6 of 6.
Incorrect Boolean login in NOTEQUAL_NSPOINTS?
FIXED: Incorrect Boolean login in NOTEQUAL_NSPOINTS?[..]/BoardGame/GameBoard.h:77: error: array type has incomplete element type
In file included from [..]/BoardGame/AppController.m:5:
[..]/BoardGame/AppController.h:12: error: array type has incomplete element type
[..]/BoardGame/AppController.m:11: error: array type has incomplete element type
[..]/BoardGame/AppController.m: In function '-[AppController validLOAMovesFromSpot:withBoard:]':
[..]/BoardGame/AppController.m:13: error: type of formal parameter 4 is incomplete
[..]/BoardGame/AppController.m: In function '-[AppController awakeFromNib]':
[..]/BoardGame/AppController.m:38: error: type of formal parameter 4 is incomplete
In file included from [..]/BoardGame/GameBoard.m:7:
[..]/BoardGame/GameBoard.h:77: error: array type has incomplete element type
[..]/BoardGame/GameBoard.m:601: error: array type has incomplete element type
FIXED: Incorrect Boolean login in NOTEQUAL_NSPOINTS?
FIXED: Incorrect Boolean login in NOTEQUAL_NSPOINTS?
Anyway, we'll have the article and project files updated shortly, along with one other small change to the opponentInLineBetweenCoord:andCoord: method . Thanks for pointing that out!