Coverage Summary for Class: GodPan (it.polimi.ingsw.model)

Class Class, % Method, % Line, %
GodPan 100% (1/ 1) 100% (2/ 2) 100% (8/ 8)


1 package it.polimi.ingsw.model; 2  3 class GodPan extends GodDecorator { 4  5  /** 6  * God Pan's class 7  * @param godPower God's power 8  */ 9  public GodPan(GodInterface godPower) { 10  super(godPower); 11  } 12  13  /** 14  * Get event 15  * @param events event to be updated 16  * @param map board situation at the moment 17  * @param actions action of the event 18  */ 19  @Override 20  public void getEvent(Event[] events, Cell[][] map, Action[][][] actions) { 21  if (godPower.getCurrentPlayer().equals(godPower.getName()) && events[0].equals(Event.MOVE) 22  && events[1].equals(Event.DOWN) && !events[2].equals(Event.ONE) 23  && godPower.getLastGod().equals(God.STANDARD)) { 24  godPower.setStatusPlayer(StatusPlayer.WIN); 25  godPower.setLastGod(God.PAN); 26  } 27  } 28 }