Package battleTank

Examples of battleTank.Level1


   */
  public ClientModel(ClientView cv, MasterView m, Object o) {
    ip = "127.0.0.1";
    this.m = m;

    p = new PlayerTank(new Point(-100, -100), new Level1());
    e = new EnemyTank(new Point(-100, -100), new Level1());
    if (o instanceof String) {
      ip = (String) o;
    }
    try {
      System.out.println("Trying to connect to remote host on " + ip);
View Full Code Here


  public boolean connected = false;

  public HostModel(HostView hv, MasterView m) {
    this.hv = hv;
    this.m = m;
    p = new PlayerTank(new Point(-100, -100), new Level1());
    e = new EnemyTank(new Point(-100, -100), new Level1());
    try {
      host = new ServerSocket(4000);
      client = host.accept();
      out = new ObjectOutputStream(client.getOutputStream());
      in = new ObjectInputStream(client.getInputStream());
View Full Code Here

      }
      repaint();
      break;
    case TANKVIEW:
      if (currentLevel == 1) {
        currentPane = new TankView(this, new Level1());
      }
      if (currentLevel == 2) {
        currentPane = new TankView(this, new Level2());
      }
      if (currentLevel == 3) {
View Full Code Here

TOP

Related Classes of battleTank.Level1

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.