[Inactive] GameAPI The Better API

Discussion in 'WIP and Development Status' started by Goblom, Nov 13, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Goblom

    Hey folks.

    I am in the process of creating a Arena/Game Manager/API/Etc thingy (Honestly i don't know what it will turn out to be) and i sort of hit the wall. I am unable to think of things to add (or expand upon) to this thing and i 100% know that it is nowhere near completed. That is where you guys come in, i want ideas and inspiration; cause i'm all out of ideas.

    Source is at https://github.com/Goblom/GameAPI (If you use this with your plugin you need to depend on "Game API" as this is a plugin ;) ) Anyone is welcome to submit pull requests and add more stuff to this, almost everything is welcome.

    Check posts below for how to use this in your plugin and what features this currently supports. (The "How To Use" section is currently outdated, please see this link for most updated Example Plugin)

    FEATURES
    Custom Events
    • ArenaChangePhase
    • ArenaCreate
    • ArenaDelete
    • TeamAddedToArena
    • TeamRemovedFromArena
    • PlayerAddedToTeam
    • PlayerRemovedFromTeam
    • TeamCreated
    • TeamRemoved
    Unlimited amount of Teams/Arenas
    Team
    • Get players in team
    • Set spawn point(s) per arena
    • Can be attached to multiple arenas
    • Custom Armor
    • Enable/Disable Friendly Fire while in an arena
    Arena
    • Get teams attached to this arena
    • Unlimited amount of teams can be added
    • TeleportTypes (Location Types)
      • End
      • Other
    • Multiple Phases per Arena
      • Create
      • Load
      • Game_Start
      • Game_End
    • Saving of player inventory before being teleport to arena to prevent item loss
    • Countdown timer
      • Start
      • Stop
      • Set
    • Min/Max Players in arena
    Abstract Classes used to control aspects of the Arena/Team
    • ArenaHandler
      • onArenaPhaseChangeEvent(ArenaChangePhase event);
      • onArenaDelete(ArenaDelete event);
      • onArenaCreate(ArenaCreate event);
      • onTeamAddedToArena(TeamAddedToArena event);
      • onTeamRemovedFromArena(TeamRemovedFromArena event);
      • onCreate();
      • onLoad();
      • start();
      • end();
    • TeamHandler
      • onPlayerAddedToTeam(PlayerAddedToTeam event);
      • onPlayerRemovedFromTeam(PlayerRemovedFromTeam event);
      • onTeamCreate(TeamCreate event);
      • onTeamRemove(TeamRemove event);
      • create();
      • delete();

    HOW TO USE
    Reffer to the link for an Example "Plugin" on how to use this. This post will eventually have a fill fledged tutorial but there is too much stuff changing right now in order to keep this up2date on everything.

    https://github.com/Goblom/GameAPI/tree/master/src/main/java/org/goblom/exampleplugin


    Updates
    11/17/2013
    • Started working on a Game Handler. This might replace Arena (and parts of Team) but will not know for sure until it is done.
      • GameHandler will have "Player Abilities" when completed

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  2. Offline

    ArthurMaker

    Looks great! :D
    I'll use it :3
     
    Goblom likes this.
  3. Offline

    maxben34

    Wow nice. I'll be interested to see what more comes from this. I wouldn't doubt it if i use this in the future.
     
    Goblom likes this.
  4. Offline

    Goblom

    maxben34 ArthurMaker Do you guys see anything that i am missing or could improve (Besides the outdated example on how to use this with ur plugin)
     
    super292 likes this.
  5. Offline

    ArthurMaker

    Goblom
    I don't think so, it is nice for me :D
     
  6. Offline

    Goblom

    ArthurMaker I do need help documenting the methods ;)
     
    MineStein and super292 like this.
  7. Offline

    super292

    Been wanting to make some new mini-games lately, this should help :) Well done. Likes for all your posts here :D
     
  8. Offline

    ArthurMaker

    I guess I can't help you with this :/
    I just started in Java and I don't know much about those thing e-e
     
  9. Offline

    Garris0n

    You really should append "Event" onto the end of each of your event class names.
     
  10. Offline

    Goblom

    I was totally joking but im not stopping you

    :eek: Aaaannnnddd thats why they were not working as planned

    Edit: This is not actually needed because i call the events manually (they are not really events) and i push data to them. I might think about doing this in the future when more "events" are added

    Edit: An explanation of what would happen when i extend Event would be quite helpful

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  11. Offline

    Garris0n

  12. Offline

    Goblom

    Garris0n Read through it... And i extended Event :) Thanks
     
    Garris0n likes this.
  13. Looks nice. I may try this over the weekend!
     
    Goblom likes this.
  14. Offline

    ccrama

    Nice looking API. Ill check it out!
     
    Goblom likes this.
  15. Offline

    The Fancy Whale

    I must have implemented this into eclipse wrong because it is throwing TONS of errors.
     
  16. Offline

    Goblom

    The Fancy Whale Its a Maven project so you should be using maven to add this dependency to your project (Less errors)

    Also, i no longer support this, Gamegine is much better and better built then this.
     
  17. Offline

    DevRosemberg

  18. Offline

    Goblom

Thread Status:
Not open for further replies.

Share This Page