All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xenoamess.cyan_potion.base.SubManager Maven / Gradle / Ivy

There is a newer version: 0.162.3
Show newest version
// Generated by delombok at Sat May 02 07:05:56 CST 2020
/*
 * MIT License
 *
 * Copyright (c) 2020 XenoAmess
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.xenoamess.cyan_potion.base;

import java.io.Closeable;

/**
 * SubManager

 * SubManager means a sub manager of GameManager.

 * nearly all SubManagers a split from GameManager(some of them are done even before I put cyan_potion open source).

 * (for example,{@link com.xenoamess.cyan_potion.base.steam.SteamManager})

 * each SubManager deals with a part of this game,

 * and can be thought as a part of GameManager.

 * 

* notice that although most of the SubManagers named ***Manager, * some of them are not named this way, due to historical or other reasons. * * @author XenoAmess * @version 0.162.2 */ public abstract class SubManager implements Closeable { private final GameManager gameManager; /** *

Constructor for SubManager.

* * @param gameManager gameManager */ public SubManager(GameManager gameManager) { this.gameManager = gameManager; } /** *

init.

*/ @SuppressWarnings("unused") public abstract void init(); /** *

update.

*/ @SuppressWarnings("unused") public abstract void update(); /** *

close.

*/ @Override public abstract void close(); @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof SubManager)) return false; final SubManager other = (SubManager) o; if (!other.canEqual((java.lang.Object) this)) return false; return true; } @java.lang.SuppressWarnings("all") @lombok.Generated protected boolean canEqual(final java.lang.Object other) { return other instanceof SubManager; } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public int hashCode() { final int result = 1; return result; } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public java.lang.String toString() { return "SubManager()"; } @java.lang.SuppressWarnings("all") @lombok.Generated public GameManager getGameManager() { return this.gameManager; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy