AiEvent.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation; either version 2, or (at your option)
  5. * any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program; if not, write to the Free Software
  14. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  15. * 02111-1307, USA.
  16. *
  17. * http://www.gnu.org/copyleft/gpl.html
  18. */
  19. package net.sf.l2j.gameserver.ai2;
  20. import net.sf.l2j.gameserver.model.L2Character;
  21. public class AiEvent
  22. {
  23. private AiEventType _type;
  24. private L2Character _source;
  25. private L2Character _target;
  26. public AiEvent(AiEventType type, L2Character source, L2Character target)
  27. {
  28. _type = type;
  29. _source = source;
  30. _target = target;
  31. }
  32. public AiEventType getType()
  33. {
  34. return _type;
  35. }
  36. public L2Character getSource()
  37. {
  38. return _source;
  39. }
  40. public L2Character getTarget()
  41. {
  42. return _target;
  43. }
  44. }