net.sf.magicproject.ui
Class TooltipFilter

java.lang.Object
  extended by net.sf.magicproject.ui.TooltipFilter

public class TooltipFilter
extends java.lang.Object

Since:
0.80
Author:
Fabrice Daugan

Field Summary
 boolean colors
          Are the colors displayed
 boolean damage
          Are the damage displayed
static TooltipFilter fullInstance
          The instance of TooltipFilter containing all fields set to true
 boolean powerANDtoughness
          Are the power / toughness displayed
 boolean properties
          Are the properties displayed
 boolean states
          Are the states displayed
 Test test
          The filtering test of this tooltip.
 boolean types
          Are the types displayed
 
Constructor Summary
TooltipFilter(java.io.InputStream inputFile)
           Structure of stream : Data[size] display powerANDtoughness yes=1,no=0 [1] display states yes=1,no=0 [1] display types yes=1,no=0 [1] display colors yes=1,no=0 [1] display properties yes=1,no=0 [1] display damage yes=1,no=0 [1] filter [...]
 
Method Summary
 boolean suits(MCard card)
          Return true if this tooltip can be displayed for this specified card.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fullInstance

public static TooltipFilter fullInstance
The instance of TooltipFilter containing all fields set to true


powerANDtoughness

public boolean powerANDtoughness
Are the power / toughness displayed


states

public boolean states
Are the states displayed


types

public boolean types
Are the types displayed


properties

public boolean properties
Are the properties displayed


colors

public boolean colors
Are the colors displayed


damage

public boolean damage
Are the damage displayed


test

public Test test
The filtering test of this tooltip.

Constructor Detail

TooltipFilter

public TooltipFilter(java.io.InputStream inputFile)
              throws java.io.IOException

Parameters:
inputFile - file containing the states picture
Throws:
java.io.IOException - If some other I/O error occurs
Method Detail

suits

public boolean suits(MCard card)
Return true if this tooltip can be displayed for this specified card.

Parameters:
card - the tested card.
Returns:
true if this tooltip can be displayed for this specified card.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.