This is HandTileView.h in view mode; [Download] [Up]
/* Generated by Interface Builder */ #import "CardHolder.h" #import "CardView.h" #import "mille.h" // This class holds the hand for each player. // Cards are drawn juxtaposed. @interface HandTileView:CardHolder { // This is the player's hand. A player holds a fixed number // of cards which are stored in this array. Its position in the // array is relative to its position in the view. CardView *myHand[ HAND_SIZE ]; } + newFrame:( const NXRect * )frameRect; // The new card is always placed at 0, which is the left most // card holder. If there are any empty slots the card is moved // to the empty slot. - addCard:( CardView * )aCard :sender; // When a card is removed from the view its slot is always filled // with the card at 0. - removeCard:( CardView * )aCard :sender; // Overrides the superclass methods. They remove a card(s) from the subview // list and send them to some other object. - sendCard:( CardView * )aCard to:anObject; - sendAllCardsTo:anObject; // A private method. When a card is added or deleted from the view // the view is reordered. - _adjustCards; @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.