From 72564301557b7af7c5b321e50483d9d6f3d054ce Mon Sep 17 00:00:00 2001 From: astei Date: Mon, 28 Jun 2010 21:31:21 +0000 Subject: [PATCH] Add SerializedParticleList. TODO: Get ParticleEngineCellularImplementation to support it git-svn-id: https://desert.svn.sourceforge.net/svnroot/desert@110 cbff3641-ea5c-438d-a1bd-c9f42921e016 --- .../sourceforge/desert/SerializedParticleList.java | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/net/sourceforge/desert/SerializedParticleList.java diff --git a/src/net/sourceforge/desert/SerializedParticleList.java b/src/net/sourceforge/desert/SerializedParticleList.java new file mode 100644 index 0000000..d4c5a60 --- /dev/null +++ b/src/net/sourceforge/desert/SerializedParticleList.java @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2010 The Desert team + * + * 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 net.sourceforge.desert; +import java.io.Serializable; + +/** + * + * @author andrew (created 28-June-2010) + */ +public class SerializedParticleList implements Serializable { + private Particle[][] part; + + public SerializedParticleList(Particle[][] partList) { + part = partList; + } + + public Particle[][] getParticles() { + return part; + } +} -- 2.11.4.GIT