Ignore:
Timestamp:
Jul 26, 2010, 3:07:31 PM (8 years ago)
Author:
Michael Seifert <mseifert@…>
Branches:
master
Children:
c90b0d6
Parents:
60de382
Message:

Changed functions of ReplayStorage? to support loading/saving/deleting of single replays instead of multiple replays;

Every UI module has its own executable controller (the core module serves as a command line interface);

Renamed de.erichseifert.warp.java.swing to de.erichseifert.warp.gui.swing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/src/main/java/de/erichseifert/warp/core/io/ReplayStorage.java

    r60de382 r01152f8  
    2323
    2424import java.io.File;
    25 import java.util.List;
    2625import java.util.Map;
    2726import java.util.Set;
     
    4039
    4140        /**
    42          * Returns the parsed replays which belong to the specified file paths.
    43          * @param ids IDs of the unparsed replay files.
    44          * @return Descriptors of the parsed replays in the same order as the specified paths.
     41         * Returns the parsed replay which belongs to the specified id.
     42         * @param id ID of the unparsed replay files.
     43         * @return Descriptor of the parsed replay.
    4544         */
    46         List<ReplayDescriptor> load(long... ids);
     45        ReplayDescriptor load(long id);
    4746        /**
    48          * Stores the specified replays.
    49          * @param replays Replays to be stored.
     47         * Stores the specified replay.
     48         * @param replay Replay to be stored.
    5049         */
    51         void save(Replay... replays);
     50        void save(Replay replay);
    5251        /**
    53          * Removes the specified replays.
    54          * @param ids Replay ids.
     52         * Removes the specified replay.
     53         * @param id Replay id.
    5554         */
    56         void delete(long... ids);
     55        void delete(long id);
    5756
    5857        Replay getReplay(ReplayDescriptor descriptor);
Note: See TracChangeset for help on using the changeset viewer.