1 /***************************************************************************
2  *                   (C) Copyright 2003-2012 - Stendhal                    *
3  ***************************************************************************
4  ***************************************************************************
5  *                                                                         *
6  *   This program is free software; you can redistribute it and/or modify  *
7  *   it under the terms of the GNU General Public License as published by  *
8  *   the Free Software Foundation; either version 2 of the License, or     *
9  *   (at your option) any later version.                                   *
10  *                                                                         *
11  ***************************************************************************/
12 package games.stendhal.client.entity;
13 
14 /**
15  * A property for image events. Entities have no place to store the image name
16  * (and can not have either, as many events at a time are possible), so we need
17  * a way to carry the data to the entity view.
18  */
19 public class ImageEventProperty extends Property {
20 	private final String image;
21 
22 	/**
23 	 * Create a new ImageEventProperty.
24 	 *
25 	 * @param image image name
26 	 */
ImageEventProperty(String image)27 	public ImageEventProperty(String image) {
28 		this.image = image;
29 	}
30 
31 	/**
32 	 * Get the image name the event handler should use.
33 	 *
34 	 * @return image name
35 	 */
getImageName()36 	public String getImageName() {
37 		return image;
38 	}
39 }
40