~ubuntu-branches/ubuntu/precise/triplea/precise

« back to all changes in this revision

Viewing changes to src/games/strategy/triplea/Dynamix_AI/Group/MovePackage.java

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-11-11 21:40:11 UTC
  • Revision ID: package-import@ubuntu.com-20111111214011-sehf2rwat36o2xqf
Tags: upstream-1.3.2.2
ImportĀ upstreamĀ versionĀ 1.3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This program is free software; you can redistribute it and/or modify
 
3
 * it under the terms of the GNU General Public License as published by
 
4
 * the Free Software Foundation; either version 2 of the License, or
 
5
 * (at your option) any later version.
 
6
 * This program is distributed in the hope that it will be useful,
 
7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
9
 * GNU General Public License for more details.
 
10
 * You should have received a copy of the GNU General Public License
 
11
 * along with this program; if not, write to the Free Software
 
12
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
13
 */
 
14
 
 
15
package games.strategy.triplea.Dynamix_AI.Group;
 
16
 
 
17
import games.strategy.engine.data.GameData;
 
18
import games.strategy.engine.data.PlayerID;
 
19
import games.strategy.triplea.Dynamix_AI.Dynamix_AI;
 
20
import games.strategy.triplea.delegate.remote.IMoveDelegate;
 
21
 
 
22
/**
 
23
 *
 
24
 * @author Stephen
 
25
 */
 
26
public class MovePackage
 
27
{
 
28
    public Dynamix_AI AI = null;
 
29
    public GameData Data = null;
 
30
    public IMoveDelegate Mover = null;
 
31
    public PlayerID Player = null;
 
32
    public Object Obj1 = null;
 
33
    public Object Obj2 = null;
 
34
    public Object Obj3 = null;
 
35
 
 
36
    public MovePackage(Dynamix_AI ai, GameData data, IMoveDelegate mover, PlayerID player, Object obj1, Object obj2, Object obj3)
 
37
    {
 
38
        AI = ai;
 
39
        Data = data;
 
40
        Mover = mover;
 
41
        Player = player;
 
42
        Obj1 = obj1;
 
43
        Obj2 = obj2;
 
44
        Obj3 = obj3;
 
45
    }
 
46
 
 
47
    public MovePackage SetObj1To(Object obj1)
 
48
    {
 
49
        Obj1 = obj1;
 
50
        return this;
 
51
    }
 
52
    public MovePackage SetObjectsTo(Object obj1, Object obj2, Object obj3)
 
53
    {
 
54
        Obj1 = obj1;
 
55
        Obj2 = obj2;
 
56
        Obj3 = obj3;
 
57
        return this;
 
58
    }
 
59
}