Examples of NoNameException


Examples of de.kumpelblase2.remoteentities.exceptions.NoNameException

   * @throws NoNameException  when trying to spawn a named entity. Use EntityManager#createNamedEntity(RemoteEntityType, Location, String, boolean) instead.
   */
  public RemoteEntity createEntity(RemoteEntityType inType, Location inLocation, boolean inSetupGoals)
  {
    if(inType.isNamed())
      throw new NoNameException("Tried to spawn a named entity without name");

    Integer id = this.getNextFreeID();
    RemoteEntity entity = this.createEntity(inType, id);
    if(entity == null)
      return null;
View Full Code Here

Examples of de.kumpelblase2.remoteentities.exceptions.NoNameException

    this.m_id = this.m_manager.getNextFreeID(this.m_id);

    if(this.m_type.isNamed())
    {
      if(this.m_name == null)
        throw new NoNameException("Tried to spawn a named entity without name");

      created = this.m_manager.createNamedEntity(this.m_type, this.m_id, this.m_name);
    }
    else
      created = this.m_manager.createEntity(this.m_type, this.m_id);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.