Next: relations
Up: MemoSetCard
Previous: methods
  Contents
  Index
Subsections
MemoSetEmptyCard
inherits from: MemoSetCard and is a template for empty card slots. Therefore it isn't a GameCardClass, too.
This class owns only inherited slots.
An empty card does not need any other cards for a set: Therefore return always: 0.
Return a set with exactly one empty card.
just do nothing. An empty card can not be selected.
an empty card scores 0.
returns the MemoSetEmptyCardView class.
An empty card is never a set. Therefore return always: false.
MemoSetSetCard
inherits from: MemoSetCard and implements the original Set cards.
This class owns additional slots which characterize the cards.
- color
- (type: singleValue) - the color of the card's symbols (red, green or blue)
- filling
- (type: singleValue) - the filling of the card's symbols (empty, half or full)
- form
- (type: singleValue) - the form of the card's symbols (ellipse, rectangle ot triangle)
- number
- (type: singleValue) - the number of the card's symbol (one, two or three)
A card of this set does need two other cards for a set: Therefore return always: 3.
we are a real GameCardClass therefore return true.
Create a set of all possible cards. Let's see: We have four properties and each has three possible values. That's a total of
=72 cards.
returns a Set with all possible ColorValues of the elements on the cards.
returns a Set with all possible fillings (asString) of the elements on the cards.
returns a Set with all possible forms (asString) of the elements on the cards.
returns a Set with all possible numbers of the elements on the cards.
creates a card with the given properties.
is a simple access method to the color slot.
is a simple access method to the filling slot.
is a simple access method to the form slot.
is a simple access method to the number slot.
returns the score for a Set. Each difference of a property counts as one point. You can find more information at the games help file.
returns the MemoSetSetCardView class.
We need to test for each property if it is the same or different at all three cards. Only if this is true for all four properties the cards are a set and we return true.
is getting three properties and returns if they are alle the same or all different.
MemoSetMemoSetCard
inherits from: MemoSetSetCard and implements the "Memory Set" cards.
This class owns only inherited slots.
returns the MemoSetMemoSetCardView class.
Next: relations
Up: MemoSetCard
Previous: methods
  Contents
  Index
spax
2003-04-28