Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8245ea4
changes
Komet20 Nov 13, 2022
101c08f
Added setters and getters to the Trick Generator class
Komet20 Nov 14, 2022
8463c9c
Merge pull request #2 from blf885/TrickGenerator_setters/getters
blf885 Nov 14, 2022
74ab4ba
Added Functional Generation Based on Vehicle Choice
LogicLogin Nov 16, 2022
7ee16f5
Merge branch 'main' of https://github.com/blf885/CS3141-sectionR02-te…
LogicLogin Nov 16, 2022
83d597a
Revert "Merge branch 'main' of https://github.com/blf885/CS3141-secti…
LogicLogin Nov 16, 2022
d92b70e
Updated Trick class unit tests slightly
blf885 Nov 16, 2022
7cd8d8d
Merge branch 'main' of https://github.com/blf885/CS3141-sectionR02-te…
blf885 Nov 16, 2022
43f8ff0
Merge pull request #1 from blf885/new_Trick_List
blf885 Nov 16, 2022
71d2eb8
Added the line divide between tests
blf885 Nov 16, 2022
52165fd
Various Stylized Changes and View Function
LogicLogin Nov 17, 2022
65e104b
Merge branch 'main' of https://github.com/blf885/CS3141-sectionR02-te…
LogicLogin Nov 17, 2022
831f1e2
Fixed the trick class tests
blf885 Nov 18, 2022
62a6798
Merge branch 'main' of https://github.com/blf885/CS3141-sectionR02-te…
blf885 Nov 18, 2022
ac48356
Updated the report and changed its name
blf885 Dec 2, 2022
d724759
Delete Project assignment2-the Project report_Team_11.docx
blf885 Dec 2, 2022
637c43a
Fully functional TrickList class and tests
blf885 Dec 2, 2022
46968f7
Changed the trickListScooter to use TrickList clas
blf885 Dec 3, 2022
c51e9c1
Removed extra junk
blf885 Dec 3, 2022
eea47e2
added additional tricklist tests
blf885 Dec 3, 2022
2168f43
Further test updates
blf885 Dec 3, 2022
10236d6
Test Commit
blf885 Dec 5, 2022
1f37794
Difficulty Generator & View Trick Pages
LogicLogin Dec 6, 2022
ffaeaec
Video Player
LogicLogin Dec 7, 2022
ad4b98b
Cleaned up some code for resume
blf885 Jan 28, 2023
43a28dc
Merge branch 'main' of https://github.com/blf885/CS3141-sectionR02-te…
blf885 Jan 28, 2023
9cef52a
Update README.md
blf885 Jan 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 1 addition & 1 deletion project_knievel/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# project_knievel

A new Flutter project.
A new Flutter project. See project proposal and project report for details

## Getting Started

Expand Down
71 changes: 17 additions & 54 deletions project_knievel/lib/TrickList.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,74 +4,37 @@ import 'package:project_knievel/Trick.dart';
/* This is the TrickList class including 'mandatory' parameters. */

class TrickList {
String name = "";
//Trick trick;
String list = "";
//final trickList; // will need to be adjucted for doubly linked list implenentation
int size = 0;

//Constructor method
TrickList(String name, String list, int size) {
this.name = name;
this.list = list;
//this.trick,
// this.trickList,
this.size = size;
}
// this constructor requires the name, the size
/*
TrickList( this.list,
this.size,
this.begScooterSize,
this.begBikeSize,
this.begSkateSize,
this.expBikeSize,
this.expScooterSize,
this.expSkateSize,
this.intBikeSize,
this.intScooterSize,
this.intSkateSize, {required this.name});
*/

// getter methods
String getName() {
return name;
int _size = 0;
late List<Trick> _trickList;

//Constructor method to initialize
TrickList() {
_size = 0;
_trickList =
List<Trick>.filled(0, Trick("", "", 1, "", true), growable: true);
}

// Returns the current size of the list
int getSize() {
return size;
}

// setter methods
String setName(String name) {
String oldName = name;

return oldName;
return _size;
}

int setSize(int size) {
int sizeSet = size;

return sizeSet;
// Returns the list of tricks
List getList() {
return _trickList;
}

/* New growable list is created with intial length of 150 all filled with the value of zero */
// TODO
final trickList = List<Trick>.filled(
150, Trick("Tailwhip", "360 of deck", 1, "thelink.com", true),
growable: true);

//add trick method to add tricks to list (doesn't need to return)
Trick addTrick(Trick x) {
trickList.add(x);

_trickList.add(x);
_size++;
return x;
}

// remove trick method, should return what trick we have removed
Trick removeTrick(Trick x) {
trickList.remove(x);

_trickList.remove(x);
_size--;
return x;
}
}
Loading