Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
9574a3c
Initial commit
hayyuelha Apr 21, 2014
b607833
Membuat kelas Deck, tapi konstruktor belum selesai
ichakid Apr 22, 2014
3c56439
kelas Player dengan atribut dan konstruktor, method baru setStatus da…
ichakid Apr 22, 2014
d4e5d0a
Update konstruktor, delete shuffleDeck
ichakid Apr 22, 2014
a16ef0e
Kelas abstrak Card
hayyuelha Apr 23, 2014
6ef0435
Kelas Action Card, turunan dari kelas Card
hayyuelha Apr 23, 2014
dd7c288
Kelas Character Card, turunan dari kelas Card
hayyuelha Apr 23, 2014
2cdce7b
Kelas Path Card, turunan dari kelas Card
hayyuelha Apr 23, 2014
5b0272d
Update konstruktor
ichakid Apr 24, 2014
fccdf3d
Kelas Board
ichakid Apr 24, 2014
d21d076
Merge branch 'master' of https://github.com/hayyuelha/SaboteurGUI
ichakid Apr 24, 2014
9e23a21
Kelas Path Card dengan tambahan getter untuk right, left, top, bottom…
hayyuelha Apr 24, 2014
8536556
Merge branch 'master' of https://github.com/hayyuelha/SaboteurGUI
hayyuelha Apr 24, 2014
aa13c8f
tambahan fungsi CompareCard
hayyuelha Apr 24, 2014
5f18d3b
Update konstruktor dan menambah method
ichakid Apr 24, 2014
085dc7c
Ubah type Role
ichakid Apr 24, 2014
968fc70
Add attribute
ichakid Apr 24, 2014
4c0b38c
Add atribute
ichakid Apr 24, 2014
bbaa9ed
Update konstruktor untuk player.java
daniarherikurniawan Apr 29, 2014
59f5781
update class Action_Card
daniarherikurniawan Apr 29, 2014
060cb2c
update Deck.java [printDeck() kmu isi ya Cha..
daniarherikurniawan Apr 29, 2014
8d712cb
Create GamePlay.java
daniarherikurniawan Apr 29, 2014
c66ac3e
Create MainSaboteur
daniarherikurniawan Apr 29, 2014
ef32ce6
Merge branch 'master' of https://github.com/hayyuelha/SaboteurGUI
daniarherikurniawan Apr 29, 2014
014f037
mainsaboteur normal ini. tanpa ada gui
daniarherikurniawan Apr 30, 2014
5b493ca
Membuat prosedur PrintBoard
ichakid Apr 30, 2014
9e98279
Membuat prosedur PrintBoard
ichakid Apr 30, 2014
7d95d7f
Membenarkan PrintBoard
ichakid May 1, 2014
c7c31ef
Memperbaiki PrintBoard
ichakid May 1, 2014
9c17de3
tambahan nilcard
hayyuelha May 12, 2014
0ce1aa2
menambah static Path_Card
ichakid May 12, 2014
1dfb6a8
Membuat method openGoal, isFinished, openGoalRecc
ichakid May 12, 2014
8795f23
tambah atribut LastPlay bertipe string
hayyuelha May 13, 2014
fde0513
Membuat method printCardsOnHand
ichakid May 13, 2014
d57ad9c
update putcardonboard
hayyuelha May 13, 2014
cfc871f
Membuat prosedur viewMap
ichakid May 13, 2014
b24315c
versi terbaru dari kelas Board dan Player
hayyuelha May 13, 2014
d82f09b
delete conflict
hayyuelha May 13, 2014
9a2cc81
update kelas Board
hayyuelha May 13, 2014
3d46421
update kelas Player
hayyuelha May 13, 2014
11cae77
GamePlay yang udah dites
hayyuelha May 15, 2014
9a90a26
Player yang udah dites
hayyuelha May 15, 2014
e6419b3
setelah dites lagi
hayyuelha May 15, 2014
8593c05
setelah dites lagi
hayyuelha May 15, 2014
cb407ca
setelah diperbaiki lagi
hayyuelha May 15, 2014
8d9499f
terbaru
hayyuelha May 15, 2014
f2bc479
terbaru
hayyuelha May 15, 2014
397cb09
terbaru
hayyuelha May 15, 2014
afdac0e
terbaru
hayyuelha May 15, 2014
2688abb
Memperbaiki id pathcard
ichakid May 15, 2014
73b5cee
ini update GamePlay dan Player
daniarherikurniawan May 16, 2014
b4fac94
Ini sudah bisa dijalankan dengan menu sesuai gui
daniarherikurniawan May 16, 2014
9b1ec45
Merubah dikit
ichakid May 16, 2014
a4c1f5b
Merge branch 'master' of https://github.com/hayyuelha/SaboteurGUI
ichakid May 16, 2014
e61eeef
ada yang aku rubah akses modifiernya
daniarherikurniawan May 17, 2014
04317fb
ini game play yang sudah compatibel dengan gui dan CMD
daniarherikurniawan May 17, 2014
2435141
Acces modifiernya aku rubah biar bisa diakses dari gui
daniarherikurniawan May 17, 2014
e187db2
ini gamePlay panel
daniarherikurniawan May 17, 2014
ab4cc5a
Merge branch 'master' of https://github.com/hayyuelha/SaboteurGUI
daniarherikurniawan May 17, 2014
7ea377a
tes
khaidzir May 17, 2014
6e574cb
tes commit
khaidzir May 17, 2014
775624e
ini file lain nya buat GUI
khaidzir May 17, 2014
b29c5b2
dokumentasi
ichakid May 17, 2014
c71b257
Merge branch 'master' of https://github.com/hayyuelha/if2210-tubes2
hayyuelha May 19, 2014
fafd3ab
JUnit kelas Action_Card
May 19, 2014
86167fd
JUnit kelas Board
May 19, 2014
db52fb5
JUnit kelas Card
May 19, 2014
c71d1df
JUnit kelas Character_CardTest
May 19, 2014
ce49579
JUnit kelas Deck
May 19, 2014
27e3605
JUnit kelas Path_Card
May 19, 2014
8bda003
JUnit kelas Path_Card
May 19, 2014
fff8393
update kelas GamePlayPanel
May 19, 2014
d88d76e
versi akhir
May 19, 2014
26ef039
selesaiiiii
May 19, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions Action_Card.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@


/**
*Kelas : Action_Card inherit dari Card
*id=1 (ViewMap) id=2(Break) id=3(Repair)
* @author Ramandika
*/
public class Action_Card extends Card{
private int id; //1=ViewMap 2=break 3=repair

/**
*Ctor action card dengan parameter id kartu
* @param i index jenis kartu
*/
public Action_Card(int i) {
id = i;
}

/**
* Method untuk mendapatkan tipe kartu
* @return 2
*/
@Override
public int getType(){
return 2;
}

/**
* Method untuk mendapatkan id kartu
* @return id
*/
@Override
public int getID(){
return id;
}

/**
* MEthod untuk menampilkan kartu
*/
@Override
public void displayCard(){
System.out.println("ini actioncard");
}
}
78 changes: 78 additions & 0 deletions Action_CardTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author Ramandika
*/
public class Action_CardTest {

public Action_CardTest() {
}

@BeforeClass
public static void setUpClass() {
}

@AfterClass
public static void tearDownClass() {
}

@Before
public void setUp() {
}

@After
public void tearDown() {
}

/**
* Test of getType method, of class Action_Card.
*/
@Test
public void testGetType() {
System.out.println("getType");
Action_Card instance = null;
instance=new Action_Card();
int expResult = 2;
int result = instance.getType();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
}

/**
* Test of getID method, of class Action_Card.
*/
@Test
public void testGetID() {
System.out.println("getID");
Action_Card instance = null;
int expResult = 0;
instance=new Action_Card();
int result = instance.getID();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
}

/**
* Test of displayCard method, of class Action_Card.
*/
@Test
public void testDisplayCard() {
System.out.println("displayCard");
Action_Card instance = new Action_Card();
instance.displayCard();
// TODO review the generated test code and remove the default call to fail.
}

}
Loading