Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dma.ihm.game.calendar.events
Class GameCalendarYearEndEvent  view GameCalendarYearEndEvent download GameCalendarYearEndEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.dma.ihm.game.calendar.events.GameCalendarEvent
          extended byorg.dma.ihm.game.calendar.events.GameCalendarYearEndEvent
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class GameCalendarYearEndEvent
extends GameCalendarEvent

GameCalendarYearEndEvent Special event that "marks" the end of a year and calls controller functions for a calendar "endSeason", and so should be really the last event of a season !


Field Summary
 
Fields inherited from class org.dma.ihm.game.calendar.events.GameCalendarEvent
day, description, EVENT_TYPE_INTERNAL, EVENT_TYPE_PUBLIC, eventType
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GameCalendarYearEndEvent(java.lang.Object source, java.util.Calendar day)
          Creates event
 
Method Summary
 void play()
          Resets the calendar and adds a (happy) newYear event
 
Methods inherited from class org.dma.ihm.game.calendar.events.GameCalendarEvent
_setToDone, compareTo, getDay, getDescription, getEventType, getFormatedDate, getSortValue, isDone, needsOnline
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameCalendarYearEndEvent

public GameCalendarYearEndEvent(java.lang.Object source,
                                java.util.Calendar day)
Creates event

Method Detail

play

public void play()
Resets the calendar and adds a (happy) newYear event

Overrides:
play in class GameCalendarEvent