Skip to content

Commit e8fe9ce

Browse files
committed
Deleted useless class
Fixed Identation Removed debug string Removed useless code in Manager Removed "strange code" in Manager adn AbstractAnimation ( related on updateRate ) Optimized Event managment Added setDone(true) in all events ( so now, default beahviors is to kill himself once it runs ) Added default javadoc ( only autogenerated ) Added package javadoc ( only autogenerated ) Added a newLogo ... i want to change the old one ...
1 parent ec3abdc commit e8fe9ce

File tree

123 files changed

+4595
-1808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+4595
-1808
lines changed

forscene-core/src/forscene/core/asolibrary/ASOLibrarian.java

-17
This file was deleted.

forscene-core/src/forscene/core/asolibrary/ASOType.java

+39
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,70 @@
1+
/*
2+
*
3+
*/
14
package forscene.core.asolibrary;
25

6+
// TODO: Auto-generated Javadoc
37
//TODO: NOT TESTED ... NOT USED
8+
/**
9+
* The Class ASOType.
10+
*/
411
public class ASOType {
12+
13+
/** The type. */
514
private String type="";
15+
16+
/** The unique. */
617
private boolean unique=false;
718

19+
/**
20+
* Instantiates a new aSO type.
21+
*/
822
private ASOType()
923
{
1024
}
1125

26+
/**
27+
* Instantiates a new aSO type.
28+
*
29+
* @param type the type
30+
*/
1231
public ASOType(String type)
1332
{
1433
this.type=type;
1534
}
1635

36+
/**
37+
* Gets the type.
38+
*
39+
* @return the type
40+
*/
1741
public String getType() {
1842
return type;
1943
}
2044

45+
/**
46+
* Sets the type.
47+
*
48+
* @param type the new type
49+
*/
2150
private void setType(String type) {
2251
this.type = type;
2352
}
2453

54+
/**
55+
* Checks if is unique.
56+
*
57+
* @return true, if is unique
58+
*/
2559
public boolean isUnique() {
2660
return unique;
2761
}
2862

63+
/**
64+
* Sets the unique.
65+
*
66+
* @param unique the new unique
67+
*/
2968
public void setUnique(boolean unique) {
3069
this.unique = unique;
3170
}

forscene-core/src/forscene/core/asolibrary/IASOLibrary.java

-6
This file was deleted.

forscene-core/src/forscene/core/asolibrary/Library.java

+75
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
*
3+
*/
14
package forscene.core.asolibrary;
25

36
import java.util.LinkedList;
@@ -6,41 +9,81 @@
69
import forscene.core.entities.AbstractSceneObject;
710
import forscene.system.entities.Resource;
811

12+
// TODO: Auto-generated Javadoc
913
//TODO: NOT TESTED ... NOT USED
14+
/**
15+
* The Class Library.
16+
*/
1017
public class Library {
18+
19+
/** The instance. */
1120
private static Library instance = null;
1221

22+
/**
23+
* Gets the single instance of Library.
24+
*
25+
* @return single instance of Library
26+
*/
1327
public static Library getInstance() {
1428
if (Library.instance == null) {
1529
Library.instance = new Library();
1630
}
1731
return Library.instance;
1832
}
1933

34+
/** The objects list. */
2035
private LinkedList<AbstractSceneObject<?>> objectsList;
36+
37+
/** The resources list. */
2138
private LinkedList<Resource<?>> resourcesList;
2239

40+
/** The types. */
2341
private Set<ASOType> types;
2442

43+
/**
44+
* Instantiates a new library.
45+
*/
2546
private Library() {
2647
}
2748

2849
// TODO: TO IMPLEMENT
50+
/**
51+
* Adds the object.
52+
*
53+
* @param object the object
54+
*/
2955
public void addObject(AbstractSceneObject<?> object) {
3056

3157
}
3258

3359
// TODO: TO IMPLEMENT
60+
/**
61+
* Adds the resource.
62+
*
63+
* @param object the object
64+
*/
3465
public void addResource(Resource<?> object) {
3566

3667
}
3768

3869
// TODO: TO IMPLEMENT
70+
/**
71+
* Gets the object.
72+
*
73+
* @param object the object
74+
* @return the object
75+
*/
3976
public void getObject(AbstractSceneObject<?> object) {
4077

4178
}
4279

4380
// TODO: TO IMPLEMENT
81+
/**
82+
* Gets the resource.
83+
*
84+
* @param object the object
85+
* @return the resource
86+
*/
4487
public void getResource(Resource<?> object) {
4588

4689
}
@@ -52,6 +95,12 @@ public void getResource(Resource<?> object) {
5295
* value; } return null; }
5396
*/
5497

98+
/**
99+
* Gets the object by name.
100+
*
101+
* @param name the name
102+
* @return the object by name
103+
*/
55104
public AbstractSceneObject<?> getObjectByName(String name) {
56105
for (Object element : objectsList) {
57106
AbstractSceneObject<?> value = (AbstractSceneObject<?>) element;
@@ -62,10 +111,21 @@ public AbstractSceneObject<?> getObjectByName(String name) {
62111
return null;
63112
}
64113

114+
/**
115+
* Gets the objects.
116+
*
117+
* @return the objects
118+
*/
65119
public LinkedList<AbstractSceneObject<?>> getObjects() {
66120
return objectsList;
67121
}
68122

123+
/**
124+
* Gets the objects by type.
125+
*
126+
* @param type the type
127+
* @return the objects by type
128+
*/
69129
public AbstractSceneObject<?>[] getObjectsByType(String type) {
70130
LinkedList<AbstractSceneObject<?>> tmp = new LinkedList<AbstractSceneObject<?>>();
71131
for (Object element : objectsList) {
@@ -77,14 +137,29 @@ public AbstractSceneObject<?>[] getObjectsByType(String type) {
77137
return null;
78138
}
79139

140+
/**
141+
* Gets the types.
142+
*
143+
* @return the types
144+
*/
80145
public Set<ASOType> getTypes() {
81146
return types;
82147
}
83148

149+
/**
150+
* Sets the objects.
151+
*
152+
* @param objects the new objects
153+
*/
84154
public void setObjects(LinkedList<AbstractSceneObject<?>> objects) {
85155
objectsList = objects;
86156
}
87157

158+
/**
159+
* Sets the types.
160+
*
161+
* @param types the new types
162+
*/
88163
public void setTypes(Set<ASOType> types) {
89164
this.types = types;
90165
}

forscene-core/src/forscene/core/effects/Blink.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
1+
/*
2+
*
3+
*/
14
package forscene.core.effects;
25

36
import forscene.core.entities.toTest.AbstractEffect;
47

8+
// TODO: Auto-generated Javadoc
9+
/**
10+
* The Class Blink.
11+
*/
512
public class Blink extends AbstractEffect{
613

14+
/* (non-Javadoc)
15+
* @see forscene.core.entities.toTest.AbstractAnimation#goNext()
16+
*/
717
@Override
818
public void goNext() {
919
if (this.getRoot().alpha() == 0f )
1020
this.getRoot().setAlpha(1);
1121
else this.getRoot().setAlpha(0);
1222
}
1323

24+
/* (non-Javadoc)
25+
* @see forscene.core.entities.toTest.AbstractAnimation#run()
26+
*/
1427
@Override
1528
public void run() {
1629
goNext();

0 commit comments

Comments
 (0)