1 package com.mlw.fps.controller.stats;
2
3 import org.apache.struts.action.ActionForm;
4 import org.apache.struts.action.ActionForward;
5 import org.apache.struts.action.ActionMapping;
6
7 import com.mlw.fps.controller.BaseAction;
8 import com.mlw.fps.view.form.AdvancedSortInfoForm;
9 import com.mlw.fps.view.manager.ViewManager;
10 /***
11 *
12 * @author Matthew Wilson
13 * @version $Revision: 1.3 $
14 */
15 public class WeaponStatsAction extends BaseAction
16 {
17 /*** Creates new PlayerStats
18 */
19 public WeaponStatsAction()
20 {
21 }
22
23 public ActionForward executeAction(ActionMapping mapping, ActionForm form, ViewManager manager)
24 {
25 if( form instanceof AdvancedSortInfoForm )
26 {
27 AdvancedSortInfoForm myForm = (AdvancedSortInfoForm)form;
28
29 if( "byWeapon".equals(myForm.getAction()) )
30 {
31 //manager.getWeaponStatsManager().setWeaponStatsByWeaponInfo( myForm.getWeaponPk() );
32 //manager.getWeaponStatsManager().setWeaponStatsByWeaponSortInfo(myForm);
33 return mapping.findForward("byWeapon");
34 }
35 else if( "byKiller".equals(myForm.getAction()) )
36 {
37 //manager.getWeaponStatsManager().setWeaponStatsByWeaponKillerInfo( myForm.getWeaponPk(), myForm.getKillerPk() );
38 //manager.getWeaponStatsManager().setWeaponStatsByWeaponKillerSortInfo(myForm);
39 return mapping.findForward("byKiller");
40 }
41 else
42 {
43 //manager.getWeaponStatsManager().setWeaponStatsSortInfo( myForm );
44 }
45 }
46
47 return mapping.findForward("default");
48 }
49 }
This page was automatically generated by Maven